update
Took 7 minutes
This commit is contained in:
parent
b15fe60737
commit
00691557cc
@ -50,7 +50,7 @@ router.ws('/', async (ws, req, next) => {
|
||||
|
||||
switch (msg.event) {
|
||||
case WebSocketEvent.CONTAINERS: {
|
||||
let data = msg.data as { pumpPin: number; sensorType: SensorType; sensor1: number; sensor2: number; }[];
|
||||
let data = msg.data as { pumpPin: number; sensorType: SensorType; sensor1: number; sensor2: number; useProxy: boolean }[];
|
||||
await Container.deleteMany({}); // V2: Remove this and check every container based on id if changes occurs
|
||||
|
||||
let i = 0;
|
||||
@ -59,6 +59,7 @@ router.ws('/', async (ws, req, next) => {
|
||||
container.slot = i;
|
||||
//container.volume = c.volume; // V2: Removed
|
||||
container.pumpPin = c.pumpPin;
|
||||
container.useProxy = c.useProxy;
|
||||
container.sensorType = c.sensorType;
|
||||
container.sensorPin1 = c.sensor1;
|
||||
container.sensorPin2 = c.sensor2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user