Skip to content

Commit

Permalink
fix: make sendApns() a stub when APNS_AUTHKEY is unset (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
vulpicastor committed Mar 17, 2021
1 parent cb87766 commit eb0281b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/notification/apns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import {config} from '../config';
const {apns} = config.notifications;

export function sendApns(link: Link, store: Store) {
if (apns.apnsAuthKey.length == 0) {
return;
}

const options = {
token: {
key: apns.apnsAuthKey,
Expand Down

0 comments on commit eb0281b

Please sign in to comment.