removed some unused code
This commit is contained in:
parent
7465e9500c
commit
c5e38c8f39
|
|
@ -58,6 +58,6 @@ exports.findOne = (req, res) => {
|
|||
res.status(404).send({message: `Cannot find user with id=${id}.`});
|
||||
}
|
||||
}).catch(err => {
|
||||
res.status(500).send({message: `Error retrieving user with id=${id}.`});
|
||||
res.status(500).send({message: `Error retrieving user with id=${id} (${err.message}).`});
|
||||
});
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
const db = require("./models/index");
|
||||
const bcrypt = require("bcryptjs");
|
||||
|
||||
const { beforeAll, afterAll } = require('@jest/globals');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Migration 2: Remove columns from Users
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
async up(queryInterface, /*Sequelize*/) {
|
||||
await queryInterface.removeColumn('Users', 'height');
|
||||
await queryInterface.removeColumn('Users', 'weight');
|
||||
await queryInterface.removeColumn('Users', 'gender');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
const bcrypt = require("bcryptjs");
|
||||
const process = require('process');
|
||||
const {createPlayer, createUsers} = require("../helper/seeder.helper");
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ const {
|
|||
const app = require("../app")
|
||||
|
||||
const { signupPlayer } = require("./data/player.test.data")
|
||||
const {set} = require("express/lib/application");
|
||||
|
||||
describe("Test player creation, authentication and retrieval", () => {
|
||||
test("should create a player", async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue