fix: Update session after request (#33136)

This commit is contained in:
Ankush Menat 2025-06-27 13:42:22 +05:30 committed by GitHub
parent e1aa789acf
commit 0613f4b11f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -403,7 +403,7 @@ def sync_database():
# update session
if session := getattr(frappe.local, "session_obj", None):
session.update()
frappe.request.after_response.add(session.update)
# Always initialize sentry SDK if the DSN is sent