Fix workflow steps

This commit is contained in:
2026-05-01 16:01:08 +03:30
parent d9dc4ecdff
commit 0bb13f4596
5 changed files with 123 additions and 41 deletions

View File

@@ -399,6 +399,11 @@ export class RequestManagementV2Controller {
description:
"Text description when expert requested ResendItemType.description",
},
textDescription: {
type: "string",
description:
"Alias for `description` (same semantics); either field may be used.",
},
},
},
})
@@ -442,12 +447,18 @@ export class RequestManagementV2Controller {
video?: Express.Multer.File[];
},
@Body("description") description?: string,
@Body("textDescription") textDescription?: string,
) {
const descCandidates = [description, textDescription]
.map((x) => (x != null ? String(x).trim() : ""))
.filter((s) => s.length > 0);
const mergedDescription =
descCandidates.length > 0 ? descCandidates[0] : undefined;
return this.requestManagementService.uploadResendDocumentsV2(
requestId,
user.sub,
files,
description,
mergedDescription,
);
}
}