summary refs log tree commit diff
path: root/src/test
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
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')
-rw-r--r--src/test/mongo_test.ts5
-rw-r--r--src/test/test.ts2
2 files changed, 3 insertions, 4 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"); diff --git a/src/test/test.ts b/src/test/test.ts
index fd50ab9a..eb0cb8b3 100644 --- a/src/test/test.ts +++ b/src/test/test.ts
@@ -1,7 +1,7 @@ import { getPermission } from "fosscord-server-util"; async function main() { - const t = await getPermission(811642917432066048n, 812327318532915201n); + const t = await getPermission("811642917432066048", "812327318532915201"); console.log(t); }