Skip to content

Commit

Permalink
small bugfix in start wiregen call
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Caldera committed Aug 7, 2015
1 parent f21e44a commit bb0acfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/api/controllers/SessionsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ module.exports = {
});
},
startWiregen: function(req, res, next) {
var session = req.body;

startWiregen(session).then(function(argument) {
res.send(200, argument);
}).catch(function(err) {
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/wiregen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Wiregen.prototype.createWiregenImages = function(session) {
return new Promise(function(resolve, reject) {
console.log('[Wiregen::createWiregenImages]');
session.wiregenExecutable = path.join(__dirname, '../../../app/wiregen/src'); //Config.xml, config.ini & elecdetect.exe
session.wiregenGrammar = path.join(__dirname, '../../../app/wiregen/src/grammar/grammar-residential.json')
session.wiregenGrammar = path.join(__dirname, '../../../app/wiregen/src/grammar/grammar-nygade.json');

var cwd = process.cwd();

Expand Down

0 comments on commit bb0acfd

Please sign in to comment.