forked from Yara724/api
Fix workflow steps
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user