Unify charge point command channel status
This commit is contained in:
@@ -32,6 +32,7 @@ export async function handleBootNotification(
|
||||
registrationStatus: 'Pending',
|
||||
heartbeatInterval,
|
||||
lastBootNotificationAt: dayjs().toDate(),
|
||||
transportStatus: 'online',
|
||||
})
|
||||
.onConflictDoUpdate({
|
||||
target: chargePoint.chargePointIdentifier,
|
||||
@@ -47,6 +48,7 @@ export async function handleBootNotification(
|
||||
// Do NOT override registrationStatus — preserve whatever the admin set
|
||||
heartbeatInterval,
|
||||
lastBootNotificationAt: dayjs().toDate(),
|
||||
transportStatus: 'online',
|
||||
updatedAt: dayjs().toDate(),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user