aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/migrate.ts
diff options
context:
space:
mode:
authorChris Johnston <christopher_johnston@me.com>2024-01-08 19:26:44 +0000
committerGitHub <noreply@github.com>2024-01-08 14:26:44 -0500
commitbec1dd270a1d3184ea13f0b849f192176354fc00 (patch)
treeebb50246aad6c0562ae892d1729c4eda94ad6ffd /src/scripts/migrate.ts
parent4566900f9cfcc837e56c590c9344d09a4bc50820 (diff)
Add Expense Date (#26)
* add expense date * Improve date formatting * Prettier * Change field description --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'src/scripts/migrate.ts')
-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 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],