summary refs log tree commit diff
path: root/dist/util/MongoBigInt.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-04 21:59:49 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-04 21:59:49 +0100
commit514afaca697ae5f9a02e91342c0434fe9eeffe74 (patch)
treed0b4ac2751d0903c097aa0374820dd17222ca9d2 /dist/util/MongoBigInt.js
parent:sparkles: AuditLog (diff)
downloadserver-514afaca697ae5f9a02e91342c0434fe9eeffe74.tar.xz
:sparkles: AuditLog
Diffstat (limited to 'dist/util/MongoBigInt.js')
-rw-r--r--dist/util/MongoBigInt.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/util/MongoBigInt.js b/dist/util/MongoBigInt.js

index 70d1a62f..3e04fac4 100644 --- a/dist/util/MongoBigInt.js +++ b/dist/util/MongoBigInt.js
@@ -38,7 +38,7 @@ class LongSchema extends mongoose_1.default.SchemaType { return val; if ("" === val) return null; - if (typeof val === "bigint" && type === "query") { + if (typeof val === "bigint") { return mongoose_1.default.mongo.Long.fromString(val.toString()); } if (val instanceof mongoose_1.default.mongo.Long) {