summary refs log tree commit diff
path: root/util/src/entities/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 21:31:44 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 21:31:44 +0200
commit4c4bc248a5456e95b11102ee293fc5e7b37a83fa (patch)
tree984b7b8c6528d3a1a4bddeb81a2101e6258906c3 /util/src/entities/Channel.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-4c4bc248a5456e95b11102ee293fc5e7b37a83fa.tar.xz
:bug: fix entity missing an id (replace .insert with new Entity().save)
Diffstat (limited to '')
-rw-r--r--util/src/entities/Channel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts

index e3586dfc..0be1c5ec 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts
@@ -144,7 +144,7 @@ export class Channel extends BaseClass { }; await Promise.all([ - Channel.insert(channel), + new Channel(channel).save(), !opts?.skipEventEmit ? emitEvent({ event: "CHANNEL_CREATE",