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
+3 -3
View File
@@ -72,7 +72,7 @@ const chat = io => {
}
},
order: [
['id', 'DESC']
['index', 'DESC']
],
limit: 50
})
@@ -140,14 +140,14 @@ const chat = io => {
socket.on('report', info => {
//handle reports of malicious content
if (!info.id) {
if (!info.index) {
return;
}
//report
reports.create({
reporter: socket.user.username,
chatlogId: info.id
chatlogIndex: info.index
});
});
});