view data fixes
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 7m11s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-24 23:29:55 +01:00
parent c1750a33dd
commit 1b0a1f4aee
134 changed files with 10380 additions and 415 deletions

View File

@@ -23,12 +23,16 @@ export class RejectSponsorshipRequestMutation
async execute(
command: RejectSponsorshipRequestCommand,
): Promise<Result<void, RejectSponsorshipRequestMutationError>> {
const result = await this.service.rejectRequest(command);
if (result.isErr()) {
try {
const result = await this.service.rejectRequest(command);
if (result.isErr()) {
return Result.err('REJECT_SPONSORSHIP_REQUEST_FAILED');
}
return Result.ok(undefined);
} catch (error) {
return Result.err('REJECT_SPONSORSHIP_REQUEST_FAILED');
}
return Result.ok(undefined);
}
}