From 45ee9cdba4e6e7c9ac918859b89d2b2ed38d4571 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Thu, 11 Jan 2024 21:38:30 +0000 Subject: Assign categories to expenses (#28) * add expense categories * set category to Payment for reimbursements * Insert categories as part of the migration * Display category groups --------- 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 ed1a3a5..903f119 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, + categoryId: 1, expenseDate: new Date(expenseRow.created_at.toDateString()), createdAt: expenseRow.created_at, isReimbursement: expenseRow.is_reimbursement === true, -- cgit v1.3