remove slugify from update
This commit is contained in:
@@ -158,15 +158,6 @@ export class RestaurantsService {
|
|||||||
throw new NotFoundException(RestMessage.NOT_FOUND);
|
throw new NotFoundException(RestMessage.NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dto.slug){
|
|
||||||
dto.slug = slugify(dto.slug, {
|
|
||||||
lower: true,
|
|
||||||
strict: true,
|
|
||||||
locale: 'fa'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
this.restRepository.assign(restaurant, dto);
|
this.restRepository.assign(restaurant, dto);
|
||||||
|
|
||||||
await this.em.persistAndFlush(restaurant);
|
await this.em.persistAndFlush(restaurant);
|
||||||
|
|||||||
Reference in New Issue
Block a user