fix: separate private company documents from shared tender item imports
This commit is contained in:
@@ -27,11 +27,11 @@ export async function kalemAra(q) {
|
||||
* Tarayıcıda çıkarılmış metinden (PDF) kalem ayrıştırıp havuza yazar.
|
||||
* docx/xlsx/zip yüklemede sunucu bunu zaten kendisi yapıyor.
|
||||
*/
|
||||
export async function kalemCikar({ ikn, metin, dosya }) {
|
||||
export async function kalemCikar({ ikn, metin, dosya, documentId }) {
|
||||
const r = await fetch('/api/kalem/cikar', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${getToken()}` },
|
||||
body: JSON.stringify({ ikn, metin, dosya }),
|
||||
body: JSON.stringify({ ikn, metin, dosya, documentId }),
|
||||
});
|
||||
const d = await r.json().catch(() => ({}));
|
||||
if (!d.success) throw new Error(d.error || 'kalem çıkarılamadı');
|
||||
|
||||
Reference in New Issue
Block a user