if today and last login is same date docs is empty in patchnotes_controller.py
This commit is contained in:
parent
2bfc56ea81
commit
11087ead17
|
|
@ -167,7 +167,7 @@ def list_patchnotes(since: str | None = None):
|
|||
{"$set": {"last_login": today}},
|
||||
upsert=True,
|
||||
)
|
||||
if since == last_login_collection.find_one({"last_login"}):
|
||||
if since == last_login_collection.find_one({"user_id": user_id},{"last_login"}):
|
||||
return Response(json_util.dumps([]), mimetype="application/json", status=200)
|
||||
|
||||
return Response(json_util.dumps(docs), mimetype="application/json", status=200)
|
||||
|
|
|
|||
Loading…
Reference in New Issue