Skip to content

Commit a5e7f8d

Browse files
committed
Fixed part issue
1 parent 8d7504a commit a5e7f8d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

OpenMediaServer/Services/PartService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ public async Task DeletePart(Guid partId)
1212
await dataRepository.DeleteObjectWithFilter<InventoryItemPart>(partId);
1313
}
1414

15-
public async Task<IEnumerable<InventoryItemPart>?> ListItems(
16-
Expression<Func<InventoryItemPart, bool>>? filter = null)
15+
public async Task<IEnumerable<InventoryItemPart>?> ListItems(Expression<Func<InventoryItemPart, bool>>? filter = null)
1716
{
18-
var items = await dataRepository.ListObjects<InventoryItemPart>();
17+
var items = await dataRepository.ListObjects(filter);
1918

2019
return items.Any() ? items : null;
2120
}

0 commit comments

Comments
 (0)