mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Fix: Handle missing category in SetTransactionCategory executor (#1001)
Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,7 @@ class Rule::ActionExecutor::SetTransactionCategory < Rule::ActionExecutor
|
||||
|
||||
def execute(transaction_scope, value: nil, ignore_attribute_locks: false, rule_run: nil)
|
||||
category = family.categories.find_by_id(value)
|
||||
return 0 unless category
|
||||
|
||||
scope = transaction_scope
|
||||
|
||||
|
||||
Reference in New Issue
Block a user