fix
This commit is contained in:
@@ -93,7 +93,10 @@ export class CriticismsService {
|
||||
}
|
||||
|
||||
async delete(id: string) {
|
||||
const criticism = await this.criticismRepository.findOne({ id });
|
||||
const criticism = await this.criticismRepository.findOne(
|
||||
{ id },
|
||||
{ populate: ['files'] },
|
||||
);
|
||||
if (!criticism) throw new BadRequestException(CriticismMessage.NOT_FOUND);
|
||||
|
||||
await this.em.removeAndFlush(criticism);
|
||||
|
||||
Reference in New Issue
Block a user