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

Commit

Permalink
debug: remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Dec 23, 2023
1 parent c748627 commit f57d150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/bot/utils/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export async function addMessagesToConversation(conversation: Conversation, mess
},
last_update: Date.now(),
};
console.log(updatedConversation);
await update("conversations", conversation.id, updatedConversation);
}
export async function newConversation(messages: ConversationMessage[], userId: string, modelName: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/bot/utils/premium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ 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,
history: environment.user.plan.history ?? [],
expenses: [
...environment.user.plan.expenses ?? [],
{
Expand All @@ -245,7 +245,7 @@ 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,
history: environment.guild.plan.history ?? [],
expenses: [
...environment.guild.plan.expenses ?? [],
{
Expand Down

0 comments on commit f57d150

Please sign in to comment.