Skip to content

Commit

Permalink
fix: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Sep 13, 2024
1 parent a0da267 commit 8d25ce1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/adapters/supabase/helpers/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export class Comment extends SuperSupabase {
.from("issue_comments")
.insert([{ id: commentNodeId, plaintext, author_id: authorId, type: "comment", payload, embedding: embedding, issue_id: issueId }]);
if (error) {
console.log(error.message, error.details, { id: commentNodeId, plaintext, author_id: authorId, type: "comment", payload, embedding });
this.context.logger.error("Error creating comment", error);
return;
}
Expand Down
3 changes: 0 additions & 3 deletions src/adapters/supabase/helpers/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class Issues extends SuperSupabase {

async createIssue(issueNodeId: string, payload: Record<string, unknown> | null, isPrivate: boolean, plaintext: string | null, authorId: number) {
//First Check if the issue already exists
console.log(payload);
const { data, error } = await this.supabase.from("issues").select("*").eq("id", issueNodeId);
if (error) {
this.context.logger.error("Error creating issue", error);
Expand All @@ -36,7 +35,6 @@ export class Issues extends SuperSupabase {
}
const { error } = await this.supabase.from("issues").insert([{ id: issueNodeId, payload, type: "issue", plaintext, author_id: authorId, embedding }]);
if (error) {
console.log(error.message, error.details, { id: issueNodeId, payload, type: "issue", plaintext, author_id: authorId, embedding });
this.context.logger.error("Error creating issue", error);
return;
}
Expand All @@ -51,7 +49,6 @@ export class Issues extends SuperSupabase {
plaintext = null as string | null;
payload = null as Record<string, unknown> | null;
}
console.log({ id: issueNodeId, plaintext, payload, embedding });
const { error } = await this.supabase.from("issues").update({ plaintext, embedding: embedding, payload, modified_at: new Date() }).eq("id", issueNodeId);
if (error) {
this.context.logger.error("Error updating comment", error);
Expand Down

0 comments on commit 8d25ce1

Please sign in to comment.