Skip to content

Commit

Permalink
Merge pull request #38 from ubiquity-whilefoo/command-interface
Browse files Browse the repository at this point in the history
fix: logger error
  • Loading branch information
gentlementlegen authored Nov 25, 2024
2 parents 5893034 + 6fdf794 commit 6e38615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/adapters/supabase/helpers/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Comment extends SuperSupabase {
async getComment(commentNodeId: string): Promise<CommentType[] | null> {
const { data, error } = await this.supabase.from("issue_comments").select("*").eq("id", commentNodeId);
if (error) {
this.context.logger.error("Error getting comment", error);
this.context.logger.error("Error getting comment", { err: error });
}
return data;
}
Expand All @@ -44,7 +44,7 @@ export class Comment extends SuperSupabase {
max_results: 10,
});
if (error) {
this.context.logger.error("Error finding similar comments", error);
this.context.logger.error("Error finding similar comments", { err: error });
}
return data;
}
Expand Down
4 changes: 2 additions & 2 deletions src/adapters/supabase/helpers/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Issue extends SuperSupabase {
async getIssue(issueNodeId: string): Promise<IssueType[] | null> {
const { data, error } = await this.supabase.from("issues").select("*").eq("id", issueNodeId).returns<IssueType[]>();
if (error) {
this.context.logger.error("Error getting issue", error);
this.context.logger.error("Error getting issue", { err: error });
return null;
}
return data;
Expand All @@ -43,7 +43,7 @@ export class Issue extends SuperSupabase {
max_results: 10,
});
if (error) {
this.context.logger.error("Error finding similar issues", error);
this.context.logger.error("Error finding similar issues", { err: error });
return [];
}
return data;
Expand Down

0 comments on commit 6e38615

Please sign in to comment.