Skip to content

Commit 1d28496

Browse files
committed
fix: fixes type in mongoose error message
1 parent 2862915 commit 1d28496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/casl-mongoose/src/accessible_records.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function accessibleBy<T extends AnyMongoAbility>(
3131
});
3232

3333
if (!subjectType) {
34-
throw new TypeError(`Cannot detect subjec type of "${baseQuery.model.modelName}" to return accessible records`);
34+
throw new TypeError(`Cannot detect subject type of "${baseQuery.model.modelName}" to return accessible records`);
3535
}
3636

3737
const query = toMongoQuery(ability, subjectType, action);

0 commit comments

Comments
 (0)