Skip to content

Commit ebcc1eb

Browse files
chore: wip
1 parent e8469ba commit ebcc1eb

File tree

2 files changed

+373
-374
lines changed

2 files changed

+373
-374
lines changed

storage/framework/core/commerce/src/gift-cards/update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function update(id: number, request: GiftCardRequestType): Promise<
3838
expiry_date: request.get('expiry_date'),
3939
last_used_date: request.get('last_used_date'),
4040
template_id: request.get('template_id'),
41-
updated_at: new Date(),
41+
updated_at: new Date().toISOString(),
4242
}
4343

4444
// Remove undefined fields to avoid overwriting with null values
@@ -113,7 +113,7 @@ export async function updateBalance(id: number, amount: number): Promise<GiftCar
113113
current_balance: newBalance,
114114
last_used_date: new Date().toISOString(),
115115
status: newBalance === 0 ? 'USED' : 'ACTIVE',
116-
updated_at: new Date(),
116+
updated_at: new Date().toISOString(),
117117
})
118118
.where('id', '=', id)
119119
.execute()

0 commit comments

Comments
 (0)