This commit is contained in:
Bastian Wagner
2026-02-27 15:11:12 +01:00
parent f1680ae07a
commit 026e47cd1b
3 changed files with 14 additions and 6 deletions

View File

@@ -13,7 +13,6 @@ export class SystemService {
constructor(
private systemRepo: KeySystemRepository,
private userRepo: UserRepository,
// private systemActivityRepo: ActivityRepository,
private mailService: MailService,
private readonly configService: ConfigService,
private readonly activityService: ActivityHelperService
@@ -66,7 +65,6 @@ export class SystemService {
return this.systemRepo.findOne({ where: { id: id } });
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async update(user: User, updateSystemDto: UpdateSystemDto) {
if (!user || !user.id || !updateSystemDto.id) { throw new HttpException('forbidden', HttpStatus.FORBIDDEN); }
const system = await this.systemRepo.findOne({ where: { id: updateSystemDto.id, managers: { id: user.id } }, withDeleted: true });