Skip to content

Commit

Permalink
fix: fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehildt committed Aug 3, 2024
1 parent 69b75ae commit aeade14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/services/outbreak.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class OutbreakService {
async delegate(reqs: Array<BreakoutUpsertReq>, args: AppBrokers) {
reqs.forEach(({ realm, contents }) => {
contents.forEach(({ value }) => {
args.useBullMQ && this.bullmq?.add(realm, value).catch((error) => error);
if (args.useBullMQ) this.bullmq?.add(realm, value).catch((error) => error);
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion apps/ms-bridge/src/modules/mqtt-client.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class MqttClient {
*/
public unsubscribe(topic: string, options?: IClientSubscribeOptions) {
this.client.unsubscribe(topic, options, () => {
this.topics.delete(topic) && this.logger.log(`${topic} unsubscribed`);
if (this.topics.delete(topic)) this.logger.log(`${topic} unsubscribed`);
});
return this;
}
Expand Down

0 comments on commit aeade14

Please sign in to comment.