This commit is contained in:
Bastian Wagner
2024-12-27 20:57:37 +01:00
parent 5194298fa6
commit 5363d0880f
33 changed files with 640 additions and 50 deletions

View File

@@ -43,4 +43,13 @@ export class SystemService {
const system = await this.systemRepo.findOne({ where: { id } });
return this.systemRepo.softRemove(system);
}
async getManagers(id: string) {
const system = await this.systemRepo.findOne({
where: { id: id },
relations: ['managers']
});
return system.managers;
}
}