fix : create restuarant
This commit is contained in:
@@ -124,7 +124,7 @@ export class RestaurantService {
|
||||
}
|
||||
const plan = userSubscription.plan.name.includes("دلیوری") ? PlanEnum.Premium : PlanEnum.Base;
|
||||
|
||||
const user = await this.usersService.findOneById(userSubscription.user.id)
|
||||
const user = await this.usersService.findOneById(userId)
|
||||
|
||||
if (!user) {
|
||||
throw new BadRequestException("User Not found");
|
||||
|
||||
Reference in New Issue
Block a user