Skip to content

Commit

Permalink
fix: update base condition for findAll() (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-k-osmosys authored Nov 14, 2024
1 parent 3a54511 commit 305cdb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/modules/applications/applications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ApplicationsService extends CoreService<Application> {
}

async getAllApplications(options: QueryOptionsDto): Promise<ApplicationResponse> {
const baseConditions = [];
const baseConditions = [{ field: 'status', value: Status.ACTIVE }];
const searchableFields = ['name'];

const { items, total } = await super.findAll(
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/modules/providers/providers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ProvidersService extends CoreService<Provider> {
}

async getAllProviders(options: QueryOptionsDto): Promise<ProviderResponse> {
const baseConditions = [];
const baseConditions = [{ field: 'status', value: Status.ACTIVE }];
const searchableFields = ['name'];

const { items, total } = await super.findAll(
Expand Down

0 comments on commit 305cdb1

Please sign in to comment.