duplicate filter check
This commit is contained in:
parent
f3aff1f090
commit
585428f5e8
1 changed files with 8 additions and 4 deletions
|
|
@ -10,7 +10,8 @@ export interface UploadFileResult {
|
||||||
deletion: unknown;
|
deletion: unknown;
|
||||||
unified: boolean;
|
unified: boolean;
|
||||||
raw: unknown;
|
raw: unknown;
|
||||||
userDocFilterId?: string;
|
createFilter?: boolean;
|
||||||
|
filename?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function duplicateCheck(
|
export async function duplicateCheck(
|
||||||
|
|
@ -182,8 +183,10 @@ export async function uploadFile(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const userDocFilterId = (uploadIngestJson as { user_doc_filter_id?: string })
|
const shouldCreateFilter = (uploadIngestJson as { create_filter?: boolean })
|
||||||
.user_doc_filter_id;
|
.create_filter;
|
||||||
|
const filename = (uploadIngestJson as { filename?: string })
|
||||||
|
.filename;
|
||||||
|
|
||||||
const result: UploadFileResult = {
|
const result: UploadFileResult = {
|
||||||
fileId,
|
fileId,
|
||||||
|
|
@ -192,7 +195,8 @@ export async function uploadFile(
|
||||||
deletion: deletionJson,
|
deletion: deletionJson,
|
||||||
unified: true,
|
unified: true,
|
||||||
raw: uploadIngestJson,
|
raw: uploadIngestJson,
|
||||||
userDocFilterId,
|
createFilter: shouldCreateFilter,
|
||||||
|
filename,
|
||||||
};
|
};
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue