From f9291f2db894a48912bfc68bbb33cbf3bf8696a3 Mon Sep 17 00:00:00 2001 From: frakarr Date: Thu, 11 Dec 2025 00:00:57 +0100 Subject: [PATCH] Update mockDb.ts --- services/mockDb.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/mockDb.ts b/services/mockDb.ts index 43a978b..38ce492 100644 --- a/services/mockDb.ts +++ b/services/mockDb.ts @@ -376,10 +376,11 @@ export const CondoService = { return request(`/my-expenses?condoId=${activeId}`); }, - payExpense: async (expenseId: string, amount: number): Promise => { + payExpense: async (expenseId: string, amount: number, familyId?: string): Promise => { + // 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 }) }); } };