deleted draining period and amount from config file as this does not work like i thought it would

This commit is contained in:
2016-06-09 20:56:42 +02:00
parent 4872f4a910
commit cfd7d677dd
4 changed files with 3 additions and 11 deletions

View File

@@ -21,8 +21,6 @@ Api.addRoute('sensorData', {
tankFull: this.bodyParams.tankFull,
startPumpingAt: this.bodyParams.startPumpingAt,
stopPumpingAt: this.bodyParams.stopPumpingAt,
drainingPeriodUnit: parseInt(this.bodyParams.drainingPeriodUnit),
drainingPeriodAmount: this.bodyParams.drainingPeriodAmount,
owner: this.bodyParams.owner,
controllerId: this.bodyParams.controllerId,
created_at: new Date()
@@ -118,8 +116,8 @@ function stateOrDefault(id) {
},
time: new Date(),
config: {
draining_period_amount: drainingPeriodAmount,
draining_period_unit: drainingPeriodUnit
draining_period_amount: 40,
draining_period_unit: 'minutes'
},
set_by: 'server'
});

View File

@@ -26,8 +26,6 @@ if (Meteor.isServer) {
tankFull: this.bodyParams.tankFull,
startPumpingAt: this.bodyParams.startPumpingAt,
stopPumpingAt: this.bodyParams.stopPumpingAt,
drainingPeriodUnit: parseInt(this.bodyParams.drainingPeriodUnit),
drainingPeriodAmount: this.bodyParams.drainingPeriodAmount,
owner: this.bodyParams.owner,
created_at: new Date()
});