From de5f86534f5822da29234191dc9f48b1a8e79452 Mon Sep 17 00:00:00 2001 From: MrlolDev Date: Sun, 17 Dec 2023 11:23:53 +0100 Subject: [PATCH] fix --- src/bot/utils/premium.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/utils/premium.ts b/src/bot/utils/premium.ts index 894b8f2..b7f498a 100644 --- a/src/bot/utils/premium.ts +++ b/src/bot/utils/premium.ts @@ -225,8 +225,8 @@ export async function chargePlan(cost: number, environment: Environment, type: " plan: { used: environment.user.plan.used + cost, total: environment.user.plan.total, - history: [ - ...environment.user.plan.history, + expenses: [ + ...environment.user.plan.expenses ?? [], { data: { model, @@ -244,8 +244,8 @@ export async function chargePlan(cost: number, environment: Environment, type: " plan: { used: environment.guild.plan.used + cost, total: environment.guild.plan.total, - history: [ - ...environment.guild.plan.history, + expenses: [ + ...environment.guild.plan.expenses ?? [], { data: { model,