Fixed a bug in MonkeyFindingDetails, where updating events using update was failing due to some internal mongoengine error.

This commit is contained in:
VakarisZ 2021-02-17 16:58:26 +02:00
parent 01c775e955
commit 81ea057509
1 changed files with 2 additions and 1 deletions

View File

@ -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