Update mockDb.ts
This commit is contained in:
@@ -376,10 +376,11 @@ export const CondoService = {
|
||||
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`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ amount, notes: 'PayPal Payment' })
|
||||
body: JSON.stringify({ amount, notes: 'PayPal / Manual Payment', familyId })
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user