remove unused
This commit is contained in:
@@ -3,7 +3,6 @@ import { RestaurantsService } from '../providers/restaurants.service';
|
||||
import { CreateRestaurantDto } from '../dto/create-restaurant.dto';
|
||||
import { UpdateRestaurantDto } from '../dto/update-restaurant.dto';
|
||||
import { UpgradeSubscriptionDto } from '../dto/upgrade-subscription.dto';
|
||||
import { UpdateSubscriptionDto } from '../dto/update-subscription.dto';
|
||||
import { FindRestaurantsDto } from '../dto/find-restaurants.dto';
|
||||
import { AdminAuthGuard } from 'src/modules/auth/guards/adminAuth.guard';
|
||||
import {
|
||||
@@ -123,17 +122,4 @@ export class RestaurantsController {
|
||||
return this.restaurantsService.upgradeSubscription(subscriptionId, upgradeSubscriptionDto);
|
||||
}
|
||||
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Update subscription for a restaurant' })
|
||||
@ApiParam({ name: 'restaurantId', required: true, description: 'Restaurant ID' })
|
||||
@ApiBody({ type: UpdateSubscriptionDto })
|
||||
@Patch('super-admin/restaurants/:restaurantId/subscription')
|
||||
updateSubscription(
|
||||
@Param('restaurantId') restaurantId: string,
|
||||
@Body() updateSubscriptionDto: UpdateSubscriptionDto
|
||||
) {
|
||||
return this.restaurantsService.updateSubscription(restaurantId, updateSubscriptionDto);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user