Skip to content

Commit

Permalink
refactor: Redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Aug 5, 2024
1 parent 3982fa4 commit c8ce6f9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/routes/companies/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,12 @@ export function createCompaniesService(): CompaniesService {
const {
limit = MAX_LIMIT,
offset = 0,
q,

sortBy = "name",

Check warning on line 120 in src/routes/companies/service.ts

View workflow job for this annotation

GitHub Actions / lint

Remove empty line before (properties)
sortOrder = "asc"
} = options;

const filter: Writable<FilterQuery<Company>> = buildFilter({
...options,
q
});
const filter: Writable<FilterQuery<Company>> = buildFilter(options);

const mongodbSortOrderMap = { asc: 1, desc: -1 } as const;

Expand Down

0 comments on commit c8ce6f9

Please sign in to comment.