fix: return earned points calculations without saving

This commit is contained in:
nyan404 committed 2026-08-25 13:48:25 +03:00
1 parent c838cb8410
commit aa49634d93
3 files changed
+22

No files matched your search

+2
View File
@@ -55,6 +55,8 @@ def calculate_and_store(payload: dict[str, Any], *, actor_id: int | None, source
Используется веб-хуками и сторонними интеграциями.
"""
response = calculate_payload(payload)
if response["mode"] == "points":
return response
_calculation_store().save(actor_id=actor_id, source=source, payload=payload, response=response)
return response