Skip to content

Commit

Permalink
refactor: UUID unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaslopezd committed May 2, 2024
1 parent 44e2e73 commit 6a07d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class MongooseDummy {
}

static getFallbackValue(schema) {
const { Mixed, ObjectId, Number, Boolean, String, UUID, Map, Buffer, DocumentArray, BigInt, Decimal128 } = Schema.Types;
const { Mixed, ObjectId, Number, Boolean, String, Map, Buffer, DocumentArray, BigInt, Decimal128 } = Schema.Types;
const { max, min, default: defaultValue } = schema.options;
if (typeof defaultValue !== 'undefined') return defaultValue;
if (schema instanceof Schema.Types.Array || schema instanceof DocumentArray) return new Types.Array();
Expand Down

0 comments on commit 6a07d50

Please sign in to comment.