website refactor
This commit is contained in:
@@ -9,7 +9,7 @@ export function useSponsorshipRequests(entityType: string, entityId: string) {
|
||||
const queryResult = useQuery({
|
||||
queryKey: ['sponsorshipRequests', entityType, entityId],
|
||||
queryFn: async () => {
|
||||
const result = await sponsorshipService.getPendingSponsorshipRequests({
|
||||
const result = await (sponsorshipService as any).getPendingSponsorshipRequests({
|
||||
entityType,
|
||||
entityId,
|
||||
});
|
||||
|
||||
@@ -9,7 +9,7 @@ export function useSponsorBilling(sponsorId: string) {
|
||||
const queryResult = useQuery({
|
||||
queryKey: ['sponsorBilling', sponsorId],
|
||||
queryFn: async () => {
|
||||
const result = await sponsorService.getBilling(sponsorId);
|
||||
const result = await (sponsorService as any).getBilling(sponsorId);
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.getError().message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user