Skip to content

Commit

Permalink
fix(production): remove broken code/flags
Browse files Browse the repository at this point in the history
This commit escapes or changes code that poses problems in production.
  • Loading branch information
Jonathan Niles authored and jniles committed Nov 18, 2016
1 parent 74e90bf commit 4b7e3a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/partials/vouchers/complex.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ComplexJournalVoucherController(Vouchers, $translate, Accounts, Currenc
// set convention payment details
function conventionPaymentDetails(convention) {
vm.financialTransaction = true;
let conventionType = vm.incomes.filter(function (item) {
var conventionType = vm.incomes.filter(function (item) {
return item.id === 3;
})[0];
vm.voucher.type_id = JSON.stringify(conventionType);
Expand Down
4 changes: 3 additions & 1 deletion server/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const uploads = require('../lib/uploader');

// accept generic express instances (initialised in app.js)
exports.configure = function configure(app) {
const isProduction = (process.env.NODE_ENV === 'production');
// TODO - things don't work well yet.
//const isProduction = (process.env.NODE_ENV === 'production');
const isProduction = false;

winston.debug('Configuring middleware.');

Expand Down

0 comments on commit 4b7e3a4

Please sign in to comment.