fixed some linter warnings
This commit is contained in:
parent
3d8bb3f40e
commit
003d4d9d13
|
|
@ -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) => {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('Roles');
|
await queryInterface.dropTable('Roles');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
async down (queryInterface, Sequelize) {
|
async down (queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('UserRoles');
|
await queryInterface.dropTable('UserRoles');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('PitchTypes');
|
await queryInterface.dropTable('PitchTypes');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('BullpenSessions');
|
await queryInterface.dropTable('BullpenSessions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('Pitches');
|
await queryInterface.dropTable('Pitches');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('Positions');
|
await queryInterface.dropTable('Positions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
async down (queryInterface, Sequelize) {
|
async down (queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('PlayerPositions');
|
await queryInterface.dropTable('PlayerPositions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('Teams');
|
await queryInterface.dropTable('Teams');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
async down (queryInterface, Sequelize) {
|
async down (queryInterface, _Sequelize) {
|
||||||
await queryInterface.dropTable('PlayerTeams');
|
await queryInterface.dropTable('PlayerTeams');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue