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