Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Dec 17, 2023
1 parent 7fc8452 commit de5f865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bot/utils/premium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit de5f865

Please sign in to comment.