Clear the Revoke timestamp if token is updated
MODIFY
src/server/rest/v1/service/RegistrationTokenService.ts
src/server/rest/v1/service/RegistrationTokenService.ts
@@ -122,6 +122,7 @@ export default class RegistrationTokenService {
registrationToken.expirationDate = filteredRequest.expirationDate ? filteredRequest.expirationDate : moment().add(1, 'month').toDate();
registrationToken.lastChangedBy = { id: req.user.id };
registrationToken.lastChangedOn = new Date();
+ registrationToken.revocationDate = null;
// Save
registrationToken.id = await RegistrationTokenStorage.saveRegistrationToken(req.user.tenantID, registrationToken);
// Build OCPP URLs

Clear the Revoke timestamp if token is updated