feat: deliver emergent Jajce commitments
This commit is contained in:
@@ -28,6 +28,10 @@ static func create(
|
||||
return null
|
||||
if trigger_event_id < NO_EVENT_ID:
|
||||
return null
|
||||
var normalized_context := context.duplicate(true)
|
||||
for integer_key in ["event_id", "opportunity_id"]:
|
||||
if normalized_context.has(integer_key):
|
||||
normalized_context[integer_key] = int(normalized_context[integer_key])
|
||||
return (
|
||||
SituationStateRecord
|
||||
. new(
|
||||
@@ -43,7 +47,7 @@ static func create(
|
||||
"resolution_event_id": NO_EVENT_ID,
|
||||
"closed_tick": -1,
|
||||
"close_reason": "",
|
||||
"context": context.duplicate(true),
|
||||
"context": normalized_context,
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user