Merge pull request #45 in ~VLE2FE/definma-api from develop to master
* commit '3f6a7a4e5bd27fc4be70a1a63215ea97acaeb548': small fixes
This commit is contained in:
commit
d0c3a2981c
@ -50,7 +50,6 @@ export default class Mail{
|
||||
});
|
||||
}).then(() => { // init done successfully
|
||||
console.info('Mail service established successfully');
|
||||
this.send('lukas.veit@bosch.com', 'Mail Service started', new Date().toString());
|
||||
}).catch(err => { // somewhere an error occurred
|
||||
console.error(`Mail init error: ${err.request.method} ${err.request.path}: ${err.response.status}`,
|
||||
err.response.data);
|
||||
|
@ -176,7 +176,6 @@ async function templateCheck (measurement, param, res, next) {
|
||||
|
||||
// validate values
|
||||
const {error, value} = ParametersValidate.input(measurement.values, templateData.parameters, 'null');
|
||||
console.log(error);
|
||||
if (error) {res400(error, res); return false;}
|
||||
return value || true;
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ describe('/', () => {
|
||||
httpStatus: 200
|
||||
}).end((err, res) => {
|
||||
if (err) return done(err);
|
||||
console.log(res.body);
|
||||
should(res.body).have.lengthOf(2);
|
||||
should(res.body[0].date).be.eql('1979-07-28T06:04:51.000Z');
|
||||
should(res.body[1].date).be.eql('1979-07-28T06:04:50.000Z');
|
||||
|
@ -490,7 +490,6 @@ describe('/sample', () => {
|
||||
httpStatus: 200
|
||||
}).end((err, res) => {
|
||||
if (err) return done(err);
|
||||
console.log(res.body);
|
||||
const json = require('../test/db.json');
|
||||
should(res.body).have.lengthOf(json.collections.samples.filter(e => e.status !== 'deleted').length);
|
||||
should(res.body).matchEach(sample => {
|
||||
|
@ -652,7 +652,6 @@ router.post('/sample/new', async (req, res, next) => {
|
||||
sample.note_id = data._id;
|
||||
sample.user_id = req.authDetails.id;
|
||||
|
||||
console.log(sample);
|
||||
new SampleModel(sample).save((err, data) => {
|
||||
if (err) return next(err);
|
||||
db.log(req, 'samples', {_id: data._id}, data.toObject());
|
||||
|
@ -134,7 +134,6 @@ router.post('/user/new', async (req, res, next) => {
|
||||
|
||||
// validate input
|
||||
const {error, value: user} = UserValidate.input(req.body, 'new');
|
||||
console.log(error);
|
||||
if (error) return res400(error, res);
|
||||
|
||||
// check that user does not already exist
|
||||
|
Reference in New Issue
Block a user