Showing 2 of 2 total issues
Function Apn
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function Apn(app, conf) {
const getConf = conf || app.config('apn');
if (!getConf) {
return log('apn config not found!');
}
Function sendNotification
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sendNotification = conn => (opts) => {
const {
message: alert,
payload = {},
badge = 1,