update notif content

This commit is contained in:
2025-12-24 12:09:09 +03:30
parent 805329e869
commit 8195d8780b
4 changed files with 20 additions and 150 deletions
@@ -7,6 +7,7 @@ import { RestRepository } from '../repositories/rest.repository';
import { RestMessage } from 'src/common/enums/message.enum';
import { FindRestaurantsDto } from '../dto/find-restaurants.dto';
import { PaginatedResult } from 'src/common/interfaces/pagination.interface';
import { PlanEnum } from '../interface/plan.interface';
@Injectable()
export class RestaurantsService {
@@ -17,9 +18,13 @@ export class RestaurantsService {
async create(dto: CreateRestaurantDto): Promise<Restaurant> {
const restaurant = this.em.create(Restaurant, {
...dto,
name: dto.name,
slug: dto.slug,
establishedYear: dto.establishedYear,
phone: dto.phone,
isActive: true,
plan: dto.plan,
plan: PlanEnum.Base,
domain: `https://dmenu-plus-front.dev.danakcorp.com/${dto.slug}`,
});
await this.em.persistAndFlush(restaurant);