fix(gateway): close session and resume boundaries

This commit is contained in:
Hide_D committed 2026-07-31 17:56:20 +00:00
1 parent 8f162f1db9
commit a112dced68
4 files changed
+68 -17

No files matched your search

+2 -2
View File
@@ -1256,10 +1256,10 @@ export const adminRouter = router({
canManageProfiles || hasScopedPermission(adminAuth, ROLE_SURVEY_OPEN, profile.profileName);
if (input.action === 'RESUME') {
if (profile.status !== 'STOPPED') {
if (profile.status !== 'STOPPED' && profile.status !== 'PAUSED') {
throw new TRPCError({
code: 'BAD_REQUEST',
message: 'Resume is allowed only for STOPPED profiles.',
message: 'Resume is allowed only for STOPPED or PAUSED profiles.',
});
}
if (!canResume) {