From e8c097ef273100c6200c8e814965f2cb02de0bc9 Mon Sep 17 00:00:00 2001 From: notsapinho <52896767+notsapinho@users.noreply.github.com> Date: Thu, 8 Apr 2021 11:43:26 -0300 Subject: added toBigInt and BigInt getters to bitfields --- src/util/MongoBigInt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/MongoBigInt.ts') 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); } -- cgit 1.5.1