Commit txn in /notifications (by @Aevann1).

master
Snakes 2022-06-26 03:01:01 -04:00
parent c715185e85
commit 13ceb8818d
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ def notifications(v):
if c not in listing: listing.append(c) if c not in listing: listing.append(c)
g.db.commit()
if request.headers.get("Authorization"): return {"data":[x.json for x in listing]} if request.headers.get("Authorization"): return {"data":[x.json for x in listing]}