add : super admin routes to get list and active/deactivate
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-03-17 23:48:52 +03:30
parent f1d25b895a
commit 0c095b681c
3 changed files with 20 additions and 7 deletions
@@ -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()