Skip to content

Commit

Permalink
fix(api): after next merge
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge committed Nov 21, 2024
1 parent 9132a37 commit 85e8421
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class PrepareAndValidateContentUsecase {
command.previewPayloadFromDto || finalPayload, // if no payload provided no point creating issues.
controlValueToValidPlaceholders,
controlValueIssues,
finalControlValues,
command.user,
command.stepType
);
Expand Down Expand Up @@ -238,13 +239,14 @@ export class PrepareAndValidateContentUsecase {
providedPayload: PreviewPayload,
valueToPlaceholders: Record<string, ValidatedPlaceholderAggregation>,
urlControlValueIssues: Record<string, ContentIssue[]>,
finalControlValues: Record<string, unknown>,
user: UserSessionData,
stepType?: StepTypeEnum
): Record<string, ContentIssue[]> {
): Promise<Record<string, ContentIssue[]>> {
let finalIssues: Record<string, ContentIssue[]> = {};
finalIssues = mergeObjects(finalIssues, this.getMissingInPayload(providedPayload, valueToPlaceholders, payload));
finalIssues = mergeObjects(finalIssues, urlControlValueIssues);
finalIssues = mergeObjects(finalIssues, await this.computeTierIssues(defaultControlValues, user, stepType));
finalIssues = mergeObjects(finalIssues, await this.computeTierIssues(finalControlValues, user, stepType));

return finalIssues;
}
Expand Down

0 comments on commit 85e8421

Please sign in to comment.