summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 19:00:46 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 19:00:46 +0100
commit5e9dea0dd514d302601b9307780f387a0ec408c2 (patch)
tree3888c11207f9518b8605a163a234d5f19edbf734 /src/Server.ts
parentfix req.userid -> convert to bigint (diff)
downloadserver-5e9dea0dd514d302601b9307780f387a0ec408c2.tar.xz
:bug: update user model on guild creation
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index fa4111db..18bd1c7a 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -35,7 +35,7 @@ export class DiscordServer extends Server { await db.collection("messages").createIndex({ id: 1 }, { unique: true }); await db.collection("channels").createIndex({ id: 1 }, { unique: true }); await db.collection("guilds").createIndex({ id: 1 }, { unique: true }); - await db.collection("members").createIndex({ id: 1 }, { unique: true }); + await db.collection("members").createIndex({ id: 1, guild_id: 1 }, { unique: true }); await db.collection("roles").createIndex({ id: 1 }, { unique: true }); await db.collection("emojis").createIndex({ id: 1 }, { unique: true }); }