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:
Bilal Godil 2026-05-26 16:12:04 -07:00
parent c1b887abc2
commit 3716e54e2a

View File

@ -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,