fix: return earned points calculations without saving
This commit is contained in:
1 parent
c838cb8410
commit
aa49634d93
3 files changed
+22
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user