summary refs log tree commit diff
path: root/src/test/mongo_test.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-14 15:01:53 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-14 15:01:53 +0200
commit6ac4067c39cdcae1cef1718273aaa8796460ffd9 (patch)
tree753cb7c53c914f33e989849753d1ef97767603f6 /src/test/mongo_test.ts
parent:bug: fix message schema (diff)
parent:sparkles: add npm i fosscord-server-util to postinstall (diff)
downloadserver-6ac4067c39cdcae1cef1718273aaa8796460ffd9.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-api
Diffstat (limited to 'src/test/mongo_test.ts')
-rw-r--r--src/test/mongo_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/mongo_test.ts b/src/test/mongo_test.ts

index f1a7f3f6..44b04c5b 100644 --- a/src/test/mongo_test.ts +++ b/src/test/mongo_test.ts
@@ -1,13 +1,12 @@ import mongoose, { Schema, Types } from "mongoose"; -import { Long as MongoTypeLong } from "mongodb"; require("mongoose-long")(mongoose); const userSchema = new Schema({ - id: MongoTypeLong, + id: String, }); const messageSchema = new Schema({ - id: MongoTypeLong, + id: String, content: String, }); const message = mongoose.model("message", messageSchema, "messages");