You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Remove all manual charge schedules if we move from a known location to anything else
297
+
constremoved=awaitthis.db.pg.oneOrNone(
298
+
`DELETE FROM schedule WHERE vehicle_uuid = $1 AND schedule_type = $2 RETURNING *;`,
299
+
[vehicle.vehicle_uuid,ScheduleType.Manual]
300
+
);
301
+
if(removed){
302
+
log(LogLevel.Trace,`Removed manual schedules for vehicle ${vehicle.vehicle_uuid}, because it moved from ${was.location_uuid} to ${vehicle.location_uuid}`);
0 commit comments