fix(upload): product_name NOT NULL 에러 수정
- 세션 생성 시 product_name 저장 - 업로드 API에서 product_name INSERT - 프론트엔드에서 product_name 전달
This commit is contained in:
@@ -1741,7 +1741,7 @@
|
||||
const res = await fetch('/api/upload-session', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ barcode })
|
||||
body: JSON.stringify({ barcode, product_name: imgModalName || barcode })
|
||||
});
|
||||
const data = await res.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user