From 70892870161edad2a44ae36bdf9092961ef830bb Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 6 Apr 2021 18:02:10 +0200 Subject: :art: Convert id bigint to string --- src/test/mongo_test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/test/mongo_test.ts') 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"); -- cgit 1.5.1