mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
broke and fixed db at the same time
This commit is contained in:
@@ -53,7 +53,7 @@ inventoryGroup.MapGet("", async (BarkContext db) =>
|
||||
inventoryGroup.MapGet("/{id}", async (int id, BarkContext db) =>
|
||||
{
|
||||
var item = await db.Inventory
|
||||
.Include(item => item.StatusId)
|
||||
.Include(item => item.Status)
|
||||
.FirstOrDefaultAsync(i => i.Id == id);
|
||||
|
||||
if (item == null)
|
||||
@@ -75,7 +75,7 @@ inventoryGroup.MapPut("/{id}", async (int id, InventoryItems updatedItem, BarkCo
|
||||
existingItem.Name = updatedItem.Name;
|
||||
existingItem.Brand = updatedItem.Brand;
|
||||
existingItem.SerialNumber = updatedItem.SerialNumber;
|
||||
existingItem.StatusId = updatedItem.StatusId;
|
||||
existingItem.Status = updatedItem.Status;
|
||||
existingItem.RentalPrice = updatedItem.RentalPrice;
|
||||
existingItem.ReplacementCost = updatedItem.ReplacementCost;
|
||||
existingItem.Notes = updatedItem.Notes;
|
||||
|
||||
Reference in New Issue
Block a user