feat(hooks): add folder parameters to indexConnector function

- Accept folderId and folderName for Google Drive indexing
- Pass folder parameters to backend API
This commit is contained in:
CREDO23 2025-12-28 15:57:02 +02:00
parent 48112f66df
commit 90b3474b47

View file

@ -267,7 +267,9 @@ export const useSearchSourceConnectors = (lazy: boolean = false, searchSpaceId?:
connectorId: number,
searchSpaceId: string | number,
startDate?: string,
endDate?: string
endDate?: string,
folderId?: string,
folderName?: string
) => {
try {
// Build query parameters
@ -280,6 +282,12 @@ export const useSearchSourceConnectors = (lazy: boolean = false, searchSpaceId?:
if (endDate) {
params.append("end_date", endDate);
}
if (folderId) {
params.append("folder_id", folderId);
}
if (folderName) {
params.append("folder_name", folderName);
}
const response = await authenticatedFetch(
`${