fix
This commit is contained in:
@@ -25,13 +25,13 @@ public class ItemRepository : AppRepository<Item>, IItemRepository
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public Item? GetByGlobal(Guid userId, Guid globalMotionId)
|
||||
public Item? GetByGlobal(Guid userId, Guid globalItemId)
|
||||
{
|
||||
return _context.Items
|
||||
.Include(x => x.Motions)
|
||||
.Include(x => x.Category)
|
||||
.Include(x => x.ItemGlobal)
|
||||
.FirstOrDefault(x => x.Category!.UserId == userId && x.ItemGlobalId == globalMotionId);
|
||||
.FirstOrDefault(x => x.Category!.UserId == userId && x.ItemGlobalId == globalItemId);
|
||||
}
|
||||
|
||||
public bool Update(Item item)
|
||||
|
||||
Reference in New Issue
Block a user