fix(upload): product_name NOT NULL 에러 수정

- 세션 생성 시 product_name 저장
- 업로드 API에서 product_name INSERT
- 프론트엔드에서 product_name 전달
This commit is contained in:
thug0bin
2026-03-08 13:49:23 +09:00
parent aef867645e
commit 90cb91d644
2 changed files with 8 additions and 4 deletions

View File

@@ -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();