Skip to content

Commit

Permalink
added message to feeds when failure happens
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Takacs committed Feb 15, 2024
1 parent b57e0fa commit 46cc3b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rss/rss.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,14 @@ export class RssService implements OnModuleInit {
name: rss.name,
disable: true
});
await this.telegramService.sendRss(
rss.chat_id,
`Feed failure, disabling feed: ${rss.name}`
);
await this.telegramService.sendRss(
rss.chat_id,
JSON.stringify(failures)
);
throw new Error("FEED_FAILURE");
}
} catch (error) {
Expand Down

0 comments on commit 46cc3b3

Please sign in to comment.