summary refs log tree commit diff
path: root/src/util/MongoBigInt.ts
diff options
context:
space:
mode:
authornotsapinho <52896767+notsapinho@users.noreply.github.com>2021-04-08 11:43:26 -0300
committernotsapinho <52896767+notsapinho@users.noreply.github.com>2021-04-08 11:43:26 -0300
commite8c097ef273100c6200c8e814965f2cb02de0bc9 (patch)
tree6cdf25485d11d7aae1a2a4efeab10e2b12ae8b86 /src/util/MongoBigInt.ts
parentMerge branch 'main' of https://github.com/fosscord/fosscord-server-util (diff)
downloadserver-e8c097ef273100c6200c8e814965f2cb02de0bc9.tar.xz
added toBigInt and BigInt getters to bitfields
Diffstat (limited to 'src/util/MongoBigInt.ts')
-rw-r--r--src/util/MongoBigInt.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/MongoBigInt.ts b/src/util/MongoBigInt.ts

index c4e5f623..fc451925 100644 --- a/src/util/MongoBigInt.ts +++ b/src/util/MongoBigInt.ts
@@ -44,7 +44,7 @@ class LongSchema extends mongoose.SchemaType { if (val instanceof Number || "number" == typeof val) return BigInt(val); if (!Array.isArray(val) && val.toString) return BigInt(val.toString()); - // @ts-ignore + //@ts-ignore throw new SchemaType.CastError("Long", val); }