aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorChris Johnston <christopher_johnston@me.com>2024-01-11 21:38:30 +0000
committerGitHub <noreply@github.com>2024-01-11 16:38:30 -0500
commit45ee9cdba4e6e7c9ac918859b89d2b2ed38d4571 (patch)
treefab43518bdb1dce24bb9731b6f41f7f73a193282 /src/scripts
parent057f3e9c533704d9f1d695e8df9c4779c983c337 (diff)
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 <sebastien@castiel.me>
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/migrate.ts1
1 files changed, 1 insertions, 0 deletions
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,