Fix duplicating group event not using the current actor as event

organizer

Closes #910

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-13 19:04:10 +01:00
parent 346cd6cfac
commit 819f2af518
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -669,7 +669,11 @@ const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
}; };
}, },
update(data) { update(data) {
return new EventModel(data.event); let event = data.event;
if (this.isDuplicate) {
event = { ...event, organizerActor: this.currentActor };
}
return new EventModel(event);
}, },
skip() { skip() {
return !this.eventId; return !this.eventId;