Skip to content

Commit 7e5eeef

Browse files
committed
chore: revises logic used to determine if hasWhereAccessResult
1 parent aee86c6 commit 7e5eeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ export interface Auth extends Omit<DeepRequired<IncomingAuthType>, 'verify' | 'f
104104
}
105105

106106
export function hasWhereAccessResult(result: boolean | Where): result is Where {
107-
return typeof result !== 'boolean';
107+
return result && typeof result === 'object';
108108
}

0 commit comments

Comments
 (0)