Skip to content

Commit ffef7c9

Browse files
committed
fix: lint
1 parent 3591f28 commit ffef7c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/cast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ module.exports = function cast(schema, obj, options, context) {
6969
throw new CastError('Object', val[k], path + '.' + k);
7070
}
7171
const discrim = getSchemaDiscriminatorByValue(context.schema, val[k][schema.options.discriminatorKey]);
72-
val[k] = cast(discrim ? discrim : schema, val[k], options, context)
73-
72+
val[k] = cast(discrim ? discrim : schema, val[k], options, context);
73+
7474
}
7575
} else if (path === '$where') {
7676
type = typeof val;

test/types/models.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function gh13930() {
9393

9494
const Test = connection.model<ITest>('Test', TestSchema);
9595

96-
Test.insertMany<{foo: string}>([{ foo: 'bar' }], { });
96+
Test.insertMany<{ foo: string }>([{ foo: 'bar' }], { });
9797
}
9898

9999
function gh10074() {

0 commit comments

Comments
 (0)