Skip to content

Commit

Permalink
chore: minor non-breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed May 22, 2019
1 parent 72cedc9 commit c313834
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions UI/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const id = 1;
const bucket = 'quick-credit';
const folder = 'profile_photos';
const endpoint = 's3.eu-west-2.amazonaws.com';
// const base_url = 'https://qcredit.herokuapp.com';
const base_url = 'http://localhost:3000';
const base_url = 'https://qcredit.herokuapp.com';
// const base_url = 'http://localhost:3000';

// const reload_pix = () => {
// const container = document.getElementById('photo_window');
Expand Down
1 change: 0 additions & 1 deletion middleware/validators.loans.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { body } from 'express-validator/check';
import { sanitizeBody } from 'express-validator/filter';
import { test_logger } from '../utils/loggers';

import validate_error_or_next from './validate_error_or_next';

Expand Down
5 changes: 4 additions & 1 deletion models/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ class Model {
this.table = table;
this.pool = pool;
this.pool.on('error', (err, client) => {
dev_logger(`****Unexpected error on idle client, ${err}`);
if (err) {
dev_logger(`****Unexpected error on idle client, ${err}`);
}
dev_logger(`Client: ${client}`);
process.exit(-1);
});
}
Expand Down
6 changes: 3 additions & 3 deletions test/users-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('/users', () => {
.end((err, res) => {
res.status.should.equal(404);
res.body.error.should.equal(
`User with email ${email} already exists`)
`User with email ${email} already exists`);
done();
});
});
Expand Down Expand Up @@ -333,7 +333,7 @@ describe('/users', () => {
});

it('should indicate if user is not found', done => {
const id = 100
const id = 100;
server
.patch(`/users/${100}/update`)
.send({
Expand All @@ -345,7 +345,7 @@ describe('/users', () => {
.expect(200)
.end((err, res) => {
res.status.should.equal(404);
res.body.error.should.equal(`User with id ${id} not found`)
res.body.error.should.equal(`User with id ${id} not found`);
done();
});
});
Expand Down

0 comments on commit c313834

Please sign in to comment.