add : super admin routes to get list and active/deactivate
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
This commit is contained in:
@@ -164,17 +164,17 @@ export class BusinessesService {
|
||||
return this.quotaPurchaseService.purchaseQuota(business, purchaseDto);
|
||||
}
|
||||
//********************************************* */
|
||||
|
||||
|
||||
async findBusinesses(query: FindBusinessesDto) {
|
||||
return this.businessRepository.findAllPaginated(query)
|
||||
}
|
||||
|
||||
//********************************************* */
|
||||
|
||||
async businessToggleActive(businessId: string) {
|
||||
async updateBusinesStatus(businessId: string, isActive: boolean) {
|
||||
const business = await this.getBusinessById(businessId)
|
||||
|
||||
business.isActive=!business.isActive
|
||||
business.isActive = isActive
|
||||
|
||||
await this.em.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user