remove slugify from update

This commit is contained in:
2026-01-07 19:44:28 +03:30
parent 476ec782f6
commit 1a18ff9132
@@ -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);