rez_core 2.1.105 → 2.1.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.1.105",
3
+ "version": "2.1.106",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -23,8 +23,8 @@ export class ListMasterItemsRepository {
23
23
  async findItemsByType(type: string, sort_by?, organizationId?: number) {
24
24
  let orderBy: Record<string, 'ASC' | 'DESC'> = {}; // no default sort unless specified
25
25
 
26
- // Only proceed if sort_by is a valid number
27
- if (typeof sort_by === 'number' && !isNaN(sort_by)) {
26
+ // Only sort if sort_by is provided
27
+ if (sort_by) {
28
28
  const listMasterItem = await this.repo.find({
29
29
  where: { id: sort_by },
30
30
  });