|
|
@@ -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,
|
|
|
},
|