Skip to content

Commit

Permalink
fix: failing test due to wrong error format
Browse files Browse the repository at this point in the history
  • Loading branch information
britsta committed Dec 4, 2024
1 parent b7e8f91 commit feead9b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ export class IncomingRequestsController extends ConsumptionBaseController {

const request = await this.getOrThrow(params.requestId);
const keyUniquenessValidationResult = this.validateKeyUniquenessOfRelationshipAttributesWithinRequest(request.content.items, params.items);
return keyUniquenessValidationResult;
if (keyUniquenessValidationResult.isError()) {
return keyUniquenessValidationResult;
}

return canDecideResult;
}

public async canReject(params: DecideRequestParametersJSON): Promise<ValidationResult> {
Expand Down

0 comments on commit feead9b

Please sign in to comment.