Skip to content

Commit

Permalink
fix: gurantee boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
mansaj committed Aug 30, 2024
1 parent a6feab0 commit 86b3f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/tables/subscribers.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ async function getPotentialSubscribersWaitingForFirstDataBrokerRemovalFixedEmail
)
// ...with an OneRep account...
.whereNotNull("onerep_profile_id")
// ...who havent received the email...
// ...who haven't received the email...
.andWhere("first_broker_removal_email_sent", false)
// ...and signed up after the feature flag `FirstDataBrokerRemovalFixedEmail`
// has been enabled last.
Expand Down Expand Up @@ -659,7 +659,7 @@ async function isSubscriberPlus(subscriberId) {
.where('id', subscriberId)
.first();

return (res && res.fxa_profile_json?.subscriptions?.includes(MONITOR_PREMIUM_CAPABILITY))
return !!(res && res.fxa_profile_json?.subscriptions?.includes(MONITOR_PREMIUM_CAPABILITY));
}
/* c8 ignore stop */

Expand Down

0 comments on commit 86b3f1a

Please sign in to comment.