We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2862915 commit 1d28496Copy full SHA for 1d28496
packages/casl-mongoose/src/accessible_records.ts
@@ -31,7 +31,7 @@ function accessibleBy<T extends AnyMongoAbility>(
31
});
32
33
if (!subjectType) {
34
- throw new TypeError(`Cannot detect subjec type of "${baseQuery.model.modelName}" to return accessible records`);
+ throw new TypeError(`Cannot detect subject type of "${baseQuery.model.modelName}" to return accessible records`);
35
}
36
37
const query = toMongoQuery(ability, subjectType, action);
0 commit comments