Update mockDb.ts

This commit is contained in:
2025-12-11 00:00:57 +01:00
committed by GitHub
parent 34fda33785
commit f9291f2db8

View File

@@ -376,10 +376,11 @@ export const CondoService = {
return request(`/my-expenses?condoId=${activeId}`); return request(`/my-expenses?condoId=${activeId}`);
}, },
payExpense: async (expenseId: string, amount: number): Promise<void> => { payExpense: async (expenseId: string, amount: number, familyId?: string): Promise<void> => {
// familyId is optional: if passed, it's an admin recording a payment for someone else.
return request(`/expenses/${expenseId}/pay`, { return request(`/expenses/${expenseId}/pay`, {
method: 'POST', method: 'POST',
body: JSON.stringify({ amount, notes: 'PayPal Payment' }) body: JSON.stringify({ amount, notes: 'PayPal / Manual Payment', familyId })
}); });
} }
}; };