Logging & Styling

This commit is contained in:
Bastian Wagner
2026-02-16 12:11:30 +01:00
parent 2eafa21baf
commit 9ea2229f5a
29 changed files with 169 additions and 90 deletions

View File

@@ -87,7 +87,7 @@ export class SystemService {
relations: ['settings']
});
if (user.settings.sendSystemAccessMails) {
this.mailService.sendAccessRemovedMail({to: manageObject.email, firstName: manageObject.email, systemName: sys.name})
this.mailService.sendAccessRemovedMail({to: user, system: sys})
}
return sys.managers;
}
@@ -107,7 +107,7 @@ export class SystemService {
sys.managers.push(user);
await this.systemRepo.save(sys);
if (user.settings.sendSystemAccessMails) {
this.mailService.sendAccessGrantedMail({to: user.username, firstName: user.firstName, systemName: sys.name})
this.mailService.sendAccessGrantedMail({to: user, system: sys})
}
return sys.managers;