[bug] fix autoreporting

This commit is contained in:
Andrea 2021-12-22 20:54:17 +01:00
parent 3bbe20b4fd
commit da31099f1f
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
if (sus.length && !await hasAutomatedReports(req.db, req.user.id)) {
await req.db.get(SQL`
INSERT INTO reports (id, userId, reporterId, isAutomatic, comment, isHandled, snapshot)
VALUES (${ulid()}, ${req.user.id}, null, 1, ${sus.join(', ')}, 0, ${await profilesSnapshot(req.db, normalise(req.params.username))});
VALUES (${ulid()}, ${req.user.id}, null, 1, ${sus.join(', ')}, 0, ${await profilesSnapshot(req.db, normalise(req.user.username))});
`);
}