forked from p15670423/monkey
Fixed a bug in MonkeyFindingDetails, where updating events using update was failing due to some internal mongoengine error.
This commit is contained in:
parent
01c775e955
commit
81ea057509
|
@ -14,5 +14,6 @@ class MonkeyFindingDetails(Document):
|
|||
|
||||
# LOGIC
|
||||
def add_events(self, events: List[Event]) -> MonkeyFindingDetails:
|
||||
self.update(push_all__events=events)
|
||||
self.events.extend(events)
|
||||
self.save()
|
||||
return self
|
||||
|
|
Loading…
Reference in New Issue