We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524f998 commit f2395baCopy full SHA for f2395ba
server/logic.ts
@@ -294,6 +294,8 @@ export class Logic {
294
295
if (vehicle.location_uuid && vehicle.location_uuid !== was.location_uuid) {
296
// Remove all manual charge schedules if we move from a known location to anything else
297
+ // TODO: This is not optimal as the user might have set a scheduled manual charge at an known location
298
+ // and if we're unlucky, the vehicle may move in and out of a location while towards it, because of the geo-fence just being a radius
299
const removed = await this.db.pg.oneOrNone(
300
`DELETE FROM schedule WHERE vehicle_uuid = $1 AND schedule_type = $2 RETURNING *;`,
301
[vehicle.vehicle_uuid, ScheduleType.Manual]
0 commit comments