mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 19:36:25 +02:00
chore: ran frontend linting
This commit is contained in:
parent
f9a10c1e0d
commit
95878368c8
74 changed files with 2347 additions and 1697 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* Maps SearchSourceConnectorType to DocumentType for fetching document counts
|
||||
*
|
||||
*
|
||||
* Note: Some connectors don't have a direct 1:1 mapping to document types:
|
||||
* - Search API connectors (TAVILY_API, SEARXNG_API, etc.) don't index documents
|
||||
* - WEBCRAWLER_CONNECTOR maps to CRAWLED_URL document type
|
||||
|
|
@ -35,9 +35,7 @@ export const CONNECTOR_TO_DOCUMENT_TYPE: Record<string, string> = {
|
|||
* Get the document type for a given connector type
|
||||
* Returns undefined if the connector doesn't index documents (e.g., search APIs)
|
||||
*/
|
||||
export function getDocumentTypeForConnector(
|
||||
connectorType: string
|
||||
): string | undefined {
|
||||
export function getDocumentTypeForConnector(connectorType: string): string | undefined {
|
||||
return CONNECTOR_TO_DOCUMENT_TYPE[connectorType];
|
||||
}
|
||||
|
||||
|
|
@ -62,4 +60,3 @@ export function getDocumentCountForConnector(
|
|||
export function isIndexableConnectorType(connectorType: string): boolean {
|
||||
return connectorType in CONNECTOR_TO_DOCUMENT_TYPE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue