From bec1dd270a1d3184ea13f0b849f192176354fc00 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Mon, 8 Jan 2024 19:26:44 +0000 Subject: Add Expense Date (#26) * add expense date * Improve date formatting * Prettier * Change field description --------- Co-authored-by: Sebastien Castiel --- src/scripts/migrate.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scripts') diff --git a/src/scripts/migrate.ts b/src/scripts/migrate.ts index beeecc1..ed1a3a5 100644 --- a/src/scripts/migrate.ts +++ b/src/scripts/migrate.ts @@ -80,6 +80,7 @@ async function main() { amount: Math.round(expenseRow.amount * 100), groupId: groupRow.id, title: expenseRow.description, + expenseDate: new Date(expenseRow.created_at.toDateString()), createdAt: expenseRow.created_at, isReimbursement: expenseRow.is_reimbursement === true, paidById: participantIdsMapping[expenseRow.paid_by_participant_id], -- cgit v1.3