Implemented test run editor's bulk test case selection

This commit is contained in:
Takeshi Kimata
2024-04-21 12:46:11 +09:00
parent d6cba787e2
commit fc91e05a80
2 changed files with 3 additions and 9 deletions

View File

@@ -19,16 +19,10 @@ module.exports = function (sequelize) {
},
});
console.log("######bulkDelete")
console.log(recordsToDelete)
if (existingRunCases.length === 0) {
return res.status(400).send("No records found to delete");
}
// await RunCase.destroy({
// where: recordsToDelete,
// });
await RunCase.destroy({
where: {
[Op.or]: recordsToDelete.map((condition) => ({