deleted draining period and amount from config file as this does not work like i thought it would
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
@@ -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()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user