Add default flag on tag for internal users
MODIFY
src/authorization/Authorizations.ts
src/authorization/Authorizations.ts
@@ -730,7 +730,8 @@ export default class Authorizations {
description: `Badged on '${chargingStation.id}'`,
issuer: true,
active: false,
- createdOn: new Date()
+ createdOn: new Date(),
+ default: false
} as Tag;
// Save
await UserStorage.saveTag(tenantID, tag);

MODIFY
src/server/rest/service/AuthService.ts
src/server/rest/service/AuthService.ts
@@ -252,7 +252,8 @@ export default class AuthService {
active: true,
issuer: true,
userID: newUser.id,
- lastChangedOn: new Date()
+ lastChangedOn: new Date(),
+ default: false
};
await UserStorage.saveTag(req.user.tenantID, tag);

Add default flag on tag for internal users