Renaming database primary key

This commit is contained in:
2021-04-23 21:20:22 +10:00
parent 0e88c9e64c
commit 370d7905eb
5 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const { chatlog, reports } = require('../database/models');
const route = async (req, res) => {
const reps = await reports.destroy({
where: {
chatlogId: req.body.chatlogId
chatlogIndex: req.body.chatlogIndex
}
});