Skip to content

Commit

Permalink
refactor: throw error in issue-activity-cache and remove console log
Browse files Browse the repository at this point in the history
Converted logger error to throw an error in issue-activity-cache.
  • Loading branch information
gentlementlegen committed Nov 19, 2024
1 parent c1c727f commit 56643bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/web/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const baseApp = createPlugin<PluginSettings, EnvConfig, SupportedEvents>(
const processor = new Processor(context);
await processor.run(activity);
const result = processor.dump();
console.log("====> result", result);
return JSON.parse(result);
},
manifest as Manifest,
Expand Down
2 changes: 1 addition & 1 deletion src/web/db/issue-activity-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class IssueActivityCache extends IssueActivity {
if (error && typeof error === "object" && "errno" in error) {
console.error(error);
} else {
this._context.logger.error(`Error fetching related issues from the database: ${error}`, {
throw this._context.logger.error(`Error fetching related issues from the database`, {
error: error as Error,
});
}
Expand Down

0 comments on commit 56643bf

Please sign in to comment.