fix(telemetry): review findings
- wau/mau trailing scans run hourly and on day finalization, not every tick - exclusion lookup failures cached 30s so an st outage cannot amplify - unverified relation filter dropped; player emptiness checked in js - anonymous unauthenticated read failures no longer logged - alerts and exclusions ensure supertokens init on cold pods
This commit is contained in:
@@ -31,6 +31,8 @@ const getAdminPlayerIds = async (): Promise<string[]> => {
|
||||
return adminPlayersCache.playerIds;
|
||||
}
|
||||
|
||||
const { ensureSuperTokensBackend } = await import("@/lib/supertokens/server");
|
||||
ensureSuperTokensBackend();
|
||||
const UserRoles = (await import("supertokens-node/recipe/userroles")).default;
|
||||
const response = await UserRoles.getUsersThatHaveRole("public", ADMIN_ROLE);
|
||||
const users = response.status === "OK" ? response.users : [];
|
||||
|
||||
Reference in New Issue
Block a user