Bernt Christian Egeland 6 miesięcy temu
rodzic
commit
0cfce9c1db
1 zmienionych plików z 0 dodań i 9 usunięć
  1. 0 9
      src/app/api/desktop/v1/inventory/route.ts

+ 0 - 9
src/app/api/desktop/v1/inventory/route.ts

@@ -15,15 +15,6 @@ export async function POST(request: Request) {
         data: {
           ...(body.id ? { id: body.id } : {}),
           ...data,
-          partNumber: data.partNumber || undefined,
-          description: data.description || undefined,
-          category: data.category || undefined,
-          supplier: data.supplier || undefined,
-          supplierPhone: data.supplierPhone || undefined,
-          supplierEmail: data.supplierEmail || undefined,
-          supplierUrl: data.supplierUrl || undefined,
-          imageUrl: data.imageUrl || undefined,
-          location: data.location || undefined,
           userId,
           organizationId,
         },