Skip to content

Commit

Permalink
fix(notifications): issue with push notification during ticket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 7, 2019
1 parent 65da9e9 commit 77dac9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/emitter/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ var notifications = require('../notifications') // Load Push Events
['tps:enable', 'tps:username', 'tps:apikey', 'gen:siteurl', 'beta:email'],
function (err, tpsSettings) {
if (err) return false

var tpsEnabled = _.head(_.filter(tpsSettings, ['name', 'tps:enable']))
var tpsUsername = _.head(_.filter(tpsSettings, ['name', 'tps:username']))
var tpsApiKey = _.head(_.filter(tpsSettings), ['name', 'tps:apikey'])
var baseUrl = _.head(_.filter(tpsSettings), ['name', 'gen:siteurl']).value
var betaEnabled = _.head(_.filter(tpsSettings), ['name', 'beta:email'])
var tpsApiKey = _.head(_.filter(tpsSettings, ['name', 'tps:apikey']))
var baseUrl = _.head(_.filter(tpsSettings, ['name', 'gen:siteurl'])).value
var betaEnabled = _.head(_.filter(tpsSettings, ['name', 'beta:email']))

betaEnabled = !betaEnabled ? false : betaEnabled.value

Expand Down

0 comments on commit 77dac9a

Please sign in to comment.