Skip to content

Commit

Permalink
Enable version and config hash ckeck
Browse files Browse the repository at this point in the history
  • Loading branch information
DonMartin76 committed Dec 8, 2016
1 parent b8aebde commit 83a3331
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
8 changes: 7 additions & 1 deletion bin/mailer
Expand Up @@ -13,6 +13,7 @@ var http = require('http');
var nodeMailer = require('nodemailer');
var async = require('async');
var wicked = require('wicked-sdk');
var utils = require('../utils');

/**
* Get port from environment and store in Express.
Expand All @@ -29,8 +30,13 @@ server.listen(port);
server.on('error', onError);
server.on('listening', onListening);

const wickedOptions = {
userAgentName: 'wicked.portal-mailer',
userAgentVersion: utils.getVersion()
};

async.series([
callback => wicked.initialize(callback),
callback => wicked.initialize(wickedOptions, callback),
callback => wicked.initMachineUser('mailer', callback)
], function (err) {
if (err) {
Expand Down
28 changes: 14 additions & 14 deletions package.json
@@ -1,22 +1,22 @@
{
"version": "0.10.1",
"private": true,
"version": "0.11.0",
"private": true,
"dependencies": {
"nodemailer": "2.5.0",
"express": "4.14.0",
"body-parser": "1.15.2",
"morgan": "1.7.0",
"debug": "2.2.0",
"async": "2.0.1",
"nodemailer": "2.5.0",
"express": "4.14.0",
"body-parser": "1.15.2",
"morgan": "1.7.0",
"debug": "2.2.0",
"async": "2.0.1",
"mustache": "2.2.1",
"wicked-sdk": "^0.10.11"
},
"wicked-sdk": "^0.11.1"
},
"scripts": {
"start": "node ./bin/mailer"
},
},
"jshintConfig": {
"node": true,
"node": true,
"esversion": 6
},
},
"name": "portal-mailer"
}
}

0 comments on commit 83a3331

Please sign in to comment.