fixed some linter warnings

This commit is contained in:
Sascha Kühl 2025-05-30 13:41:09 +02:00
parent 3d8bb3f40e
commit 003d4d9d13
12 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,5 @@
const db = require("../models/index"); const db = require("../models/index");
const Team = db.Team; const Team = db.Team;
const Player = db.Player;
const Op = db.Sequelize.Op; const Op = db.Sequelize.Op;
exports.insert = (req, res) => { exports.insert = (req, res) => {

View File

@ -21,7 +21,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('Roles'); await queryInterface.dropTable('Roles');
} }
}; };

View File

@ -37,7 +37,7 @@ module.exports = {
}); });
}, },
async down (queryInterface, Sequelize) { async down (queryInterface, _Sequelize) {
await queryInterface.dropTable('UserRoles'); await queryInterface.dropTable('UserRoles');
} }
}; };

View File

@ -24,7 +24,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('PitchTypes'); await queryInterface.dropTable('PitchTypes');
} }
}; };

View File

@ -27,7 +27,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('BullpenSessions'); await queryInterface.dropTable('BullpenSessions');
} }
}; };

View File

@ -45,7 +45,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('Pitches'); await queryInterface.dropTable('Pitches');
} }
}; };

View File

@ -31,7 +31,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('Positions'); await queryInterface.dropTable('Positions');
} }
}; };

View File

@ -33,7 +33,7 @@ module.exports = {
}); });
}, },
async down (queryInterface, Sequelize) { async down (queryInterface, _Sequelize) {
await queryInterface.dropTable('PlayerPositions'); await queryInterface.dropTable('PlayerPositions');
} }
}; };

View File

@ -27,7 +27,7 @@ module.exports = {
} }
}); });
}, },
async down(queryInterface, Sequelize) { async down(queryInterface, _Sequelize) {
await queryInterface.dropTable('Teams'); await queryInterface.dropTable('Teams');
} }
}; };

View File

@ -33,7 +33,7 @@ module.exports = {
}); });
}, },
async down (queryInterface, Sequelize) { async down (queryInterface, _Sequelize) {
await queryInterface.dropTable('PlayerTeams'); await queryInterface.dropTable('PlayerTeams');
} }
}; };

View File

@ -1,6 +1,6 @@
/** @type {import('sequelize-cli').Migration} */ /** @type {import('sequelize-cli').Migration} */
module.exports = { module.exports = {
async up(queryInterface, Sequelize) { async up(queryInterface, _Sequelize) {
await queryInterface.sequelize.query(` await queryInterface.sequelize.query(`
INSERT INTO "Players" ("userId", "height", "weight", "gender", "bats", "throws", "createdAt", "updatedAt") INSERT INTO "Players" ("userId", "height", "weight", "gender", "bats", "throws", "createdAt", "updatedAt")
SELECT SELECT

View File

@ -2,7 +2,7 @@ const request = require("supertest")
const { const {
expect, expect,
describe, describe,
test, beforeAll, afterAll, test,
} = require('@jest/globals'); } = require('@jest/globals');
const app = require("../app") const app = require("../app")