changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user