fix(gateway): close session and resume boundaries

This commit is contained in:
2026-07-31 17:56:20 +00:00
parent 8f162f1db9
commit a112dced68
4 changed files with 68 additions and 17 deletions
+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) {