diff --git a/apps/api/src/modules/applications/applications.service.ts b/apps/api/src/modules/applications/applications.service.ts index 4df6db51..400842d7 100644 --- a/apps/api/src/modules/applications/applications.service.ts +++ b/apps/api/src/modules/applications/applications.service.ts @@ -59,7 +59,7 @@ export class ApplicationsService extends CoreService { } async getAllApplications(options: QueryOptionsDto): Promise { - const baseConditions = []; + const baseConditions = [{ field: 'status', value: Status.ACTIVE }]; const searchableFields = ['name']; const { items, total } = await super.findAll( diff --git a/apps/api/src/modules/providers/providers.service.ts b/apps/api/src/modules/providers/providers.service.ts index b72559f1..487518d8 100644 --- a/apps/api/src/modules/providers/providers.service.ts +++ b/apps/api/src/modules/providers/providers.service.ts @@ -63,7 +63,7 @@ export class ProvidersService extends CoreService { } async getAllProviders(options: QueryOptionsDto): Promise { - const baseConditions = []; + const baseConditions = [{ field: 'status', value: Status.ACTIVE }]; const searchableFields = ['name']; const { items, total } = await super.findAll(