chore: revises logic used to determine if hasWhereAccessResult

This commit is contained in:
James
2022-03-08 14:42:28 -05:00
parent aee86c6136
commit 7e5eeef122

View File

@@ -104,5 +104,5 @@ export interface Auth extends Omit<DeepRequired<IncomingAuthType>, 'verify' | 'f
}
export function hasWhereAccessResult(result: boolean | Where): result is Where {
return typeof result !== 'boolean';
return result && typeof result === 'object';
}