summary refs log tree commit diff
path: root/src/util/Event.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:25:37 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:25:37 +0200
commit2a952755028789506f35e33a9f7477e8531c5382 (patch)
treed1203f730a786812a04873f9c51f2a78738ac3ca /src/util/Event.ts
parentfix error handler (diff)
downloadserver-2a952755028789506f35e33a9f7477e8531c5382.tar.xz
:zap: use mongoose autopopulate
Diffstat (limited to 'src/util/Event.ts')
-rw-r--r--src/util/Event.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/Event.ts b/src/util/Event.ts

index 43c51d5c..8a24e4bb 100644 --- a/src/util/Event.ts +++ b/src/util/Event.ts
@@ -5,6 +5,7 @@ export async function emitEvent(payload: Omit<Event, "created_at">) { created_at: new Date(), // in seconds ...payload, }; + // TODO: bigint isn't working return await new EventModel(obj).save(); }