Skip to content

Commit

Permalink
parse falsy values correctly (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankilkenny committed Mar 25, 2022
1 parent e563a4f commit 563fdaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sentinel/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export class SentinelClient extends BaseApiClient {
alertThreshold: sentinel.alertThreshold,
notifyConfig: {
notifications: await this.getNotifications(sentinel.notificationChannels),
autotaskId: sentinel.autotaskTrigger ?? undefined,
timeoutMs: sentinel.alertTimeoutMs ?? 0,
autotaskId: sentinel.autotaskTrigger ? sentinel.autotaskTrigger : undefined,
timeoutMs: sentinel.alertTimeoutMs ? sentinel.alertTimeoutMs : 0,
},
paused: sentinel.paused ? sentinel.paused : false,
};
Expand Down

0 comments on commit 563fdaa

Please sign in to comment.