Update linting

This commit is contained in:
Zaid Humaimidi committed 2023-12-16 19:08:13 -08:00
1 parent 4f2dfb4f48
commit 0c9c027a77
112 files changed
+3781 -4125

No files matched your search

+3 -3
View File
@@ -78,7 +78,7 @@ export default class Authorizer {
public getValidator(
resourceType: string,
resource: unknown
resource: unknown,
): (mutationType: string, mutation?: any, args?: any) => boolean {
if (this.validatorCache.has(resource))
return this.validatorCache.get(resource);
@@ -99,7 +99,7 @@ export default class Authorizer {
const validator = (
mutationType: string,
mutation: any,
any: any
any: any,
): boolean => {
if (!validators.length) return false;
@@ -134,7 +134,7 @@ export default class Authorizer {
const res = evaluate(
validators.length > 1 ? ["OR", validators] : validators[0],
valueFunction,
Date.now()
Date.now(),
);
return !Array.isArray(res) && !!res;
};