mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 07:12:39 +02:00
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:
parent
48112f66df
commit
90b3474b47
1 changed files with 9 additions and 1 deletions
|
|
@ -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(
|
||||
`${
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue