mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
fix(notifications): greater than 5 minutes ago not less (#1187)
* fix(notifications): dead notifications that are still present long after * fix(notifications): greater than 5 minutes ago not less
This commit is contained in:
parent
f847ee84a9
commit
83286cc9a3
@ -122,7 +122,7 @@ class Notifications(Repository):
|
||||
self.db.from_("notifications")
|
||||
.select("*")
|
||||
.filter("chat_id", "eq", chat_id)
|
||||
.filter("datetime", "lt", five_minutes_ago)
|
||||
.filter("datetime", "ge", five_minutes_ago)
|
||||
.execute()
|
||||
).data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user