update order

This commit is contained in:
2026-01-30 21:01:20 +03:30
parent fde120da3c
commit 5e5eeec5be
12 changed files with 189 additions and 256 deletions
@@ -121,4 +121,14 @@ export class AdminService {
}
return admin
}
async findByIds(adminIds: string[]) {
const admins = await this.adminRepository.find({
id: { $in: adminIds }
})
if (adminIds.length !== admins.length) {
throw new BadRequestException("some admins not found")
}
return admins
}
}