website refactor

This commit is contained in:
2026-01-14 02:02:24 +01:00
parent 8d7c709e0c
commit 4522d41aef
291 changed files with 12763 additions and 9309 deletions

View File

@@ -0,0 +1,26 @@
import { AcceptSponsorshipRequestMutation } from '@/lib/mutations/sponsors/AcceptSponsorshipRequestMutation';
import { RejectSponsorshipRequestMutation } from '@/lib/mutations/sponsors/RejectSponsorshipRequestMutation';
import type { AcceptSponsorshipRequestCommand } from '@/lib/services/sponsors/SponsorshipRequestsService';
import type { RejectSponsorshipRequestCommand } from '@/lib/services/sponsors/SponsorshipRequestsService';
export async function acceptSponsorshipRequest(
command: AcceptSponsorshipRequestCommand,
): Promise<void> {
const mutation = new AcceptSponsorshipRequestMutation();
const result = await mutation.execute(command);
if (result.isErr()) {
throw new Error('Failed to accept sponsorship request');
}
}
export async function rejectSponsorshipRequest(
command: RejectSponsorshipRequestCommand,
): Promise<void> {
const mutation = new RejectSponsorshipRequestMutation();
const result = await mutation.execute(command);
if (result.isErr()) {
throw new Error('Failed to reject sponsorship request');
}
}