mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fix(template): drop stray await on synchronous Result.or in _serverUserCache
Result.or returns T | U synchronously, so awaiting it tripped @typescript-eslint/await-thenable and @typescript-eslint/return-await in the generated packages/stack and packages/react SDKs.
This commit is contained in:
parent
c1b887abc2
commit
3716e54e2a
@ -71,7 +71,7 @@ export class _StackServerAppImplIncomplete<HasTokenStore extends boolean, Projec
|
||||
});
|
||||
private readonly _serverUserCache = createCache<string[], UsersCrud['Server']['Read'] | null>(async ([userId]) => {
|
||||
const user = await this._interface.getServerUserById(userId);
|
||||
return await Result.or(user, null);
|
||||
return Result.or(user, null);
|
||||
});
|
||||
private readonly _serverTeamsCache = createCache<[
|
||||
userId?: string,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user