fixed some linter warnings
This commit is contained in:
parent
3d8bb3f40e
commit
003d4d9d13
|
|
@ -1,6 +1,5 @@
|
|||
const db = require("../models/index");
|
||||
const Team = db.Team;
|
||||
const Player = db.Player;
|
||||
const Op = db.Sequelize.Op;
|
||||
|
||||
exports.insert = (req, res) => {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('Roles');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ module.exports = {
|
|||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
async down (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('UserRoles');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('PitchTypes');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('BullpenSessions');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('Pitches');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('Positions');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
async down (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('PlayerPositions');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
async down(queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('Teams');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
async down (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable('PlayerTeams');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
async up(queryInterface, _Sequelize) {
|
||||
await queryInterface.sequelize.query(`
|
||||
INSERT INTO "Players" ("userId", "height", "weight", "gender", "bats", "throws", "createdAt", "updatedAt")
|
||||
SELECT
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const request = require("supertest")
|
|||
const {
|
||||
expect,
|
||||
describe,
|
||||
test, beforeAll, afterAll,
|
||||
test,
|
||||
} = require('@jest/globals');
|
||||
|
||||
const app = require("../app")
|
||||
|
|
|
|||
Loading…
Reference in New Issue