Fix being able to edit/delete messages only on the websocket end, doesn't affect db

This commit is contained in:
2026-02-01 21:33:51 -07:00
parent 64a15390e7
commit a73834a849
2 changed files with 97 additions and 94 deletions

View File

@@ -17,7 +17,7 @@ export async function checkAuthorization (
if (!userData[0]) return { valid: false, id: 0 }
else {
if (updateIp != undefined && updateIp != null && db0 != undefined)
if (updateIp != null)
db0
.update(users)
.set({ latestIp: updateIp })