fixed channel name input from params to timingActionType

This commit is contained in:
bill bittner 2018-01-23 15:05:43 -08:00
parent 7374c62f4b
commit bf8a25b96f
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ module.exports = {
logger.debug(`this claim was published in channel: ${publishParams.channel_name}`); logger.debug(`this claim was published in channel: ${publishParams.channel_name}`);
return db.Channel.findOne({where: {channelName: publishParams.channel_name}}); return db.Channel.findOne({where: {channelName: publishParams.channel_name}});
} else { } else {
logger.debug('this claim was published in channel: n/a'); logger.debug('this claim was not published in a channel');
return null; return null;
} }
}) })

View file

@ -142,7 +142,7 @@ module.exports = (app) => {
}) })
.then(publishParams => { .then(publishParams => {
// set the timing event type for reporting // set the timing event type for reporting
timingActionType = returnPublishTimingActionType(publishParams.channelName); timingActionType = returnPublishTimingActionType(publishParams.channel_name);
// publish the asset // publish the asset
return publish(publishParams, fileName, fileType); return publish(publishParams, fileName, fileType);
}) })