fix 500 error

pull/146/head
Aevann 2023-05-05 03:46:32 +03:00
parent a7bdd8ea42
commit f69ba41ca8
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def clear(v):
notifs = g.db.query(Notification).join(Notification.comment).filter(
Notification.read == False,
Notification.user_id == v.id,
).options(load_only(Notification.id)).all()
).options(load_only(Notification.comment_id)).all()
for n in notifs:
n.read = True