fix: Multiplayer changes attributed to incorrect user (#4282)

* fix: Multiplayer changes attributed to the wrong user, performance improvements

* fix: Actually use _last_ editor
This commit is contained in:
Tom Moor
2022-10-12 09:19:07 -04:00
committed by GitHub
parent 484e912947
commit 7199088d1b
6 changed files with 47 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ class Event extends IdModel {
*/
static schedule(event: Partial<Event>) {
const now = new Date();
globalEventQueue.add(
return globalEventQueue.add(
this.build({
createdAt: now,
...event,