Formatowanie: prettier na testach apki i porzadki w api/app (zwijanie i zawijanie linii, koncowki linii) — wylacznie zmiany prezentacyjne, zero zmian logicznych (testy unit i e2e przechodza na tym drzewie)
This commit is contained in:
@@ -457,8 +457,7 @@ export async function getGymPresenceTelemetry(
|
||||
where: { userId_gymId: { userId: caller.userId, gymId } },
|
||||
select: { roles: true },
|
||||
});
|
||||
if (!membership?.roles.includes('OWNER'))
|
||||
throw forbidden('You do not have access to this gym');
|
||||
if (!membership?.roles.includes('OWNER')) throw forbidden('You do not have access to this gym');
|
||||
}
|
||||
return getGymStats(prisma, gymId, range);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user