mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Make the linter happy
This commit is contained in:
@@ -149,7 +149,7 @@ class Qdrant_VectorStores implements INode {
|
|||||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||||
const qdrantApiKey = getCredentialParam('qdrantApiKey', credentialData, nodeData)
|
const qdrantApiKey = getCredentialParam('qdrantApiKey', credentialData, nodeData)
|
||||||
|
|
||||||
const port = Qdrant_VectorStores.determinePortByUrl(qdrantServerUrl);
|
const port = Qdrant_VectorStores.determinePortByUrl(qdrantServerUrl)
|
||||||
|
|
||||||
const client = new QdrantClient({
|
const client = new QdrantClient({
|
||||||
url: qdrantServerUrl,
|
url: qdrantServerUrl,
|
||||||
@@ -201,7 +201,7 @@ class Qdrant_VectorStores implements INode {
|
|||||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||||
const qdrantApiKey = getCredentialParam('qdrantApiKey', credentialData, nodeData)
|
const qdrantApiKey = getCredentialParam('qdrantApiKey', credentialData, nodeData)
|
||||||
|
|
||||||
const port = Qdrant_VectorStores.determinePortByUrl(qdrantServerUrl);
|
const port = Qdrant_VectorStores.determinePortByUrl(qdrantServerUrl)
|
||||||
|
|
||||||
const client = new QdrantClient({
|
const client = new QdrantClient({
|
||||||
url: qdrantServerUrl,
|
url: qdrantServerUrl,
|
||||||
@@ -257,19 +257,19 @@ class Qdrant_VectorStores implements INode {
|
|||||||
* @param qdrantServerUrl the url to get the port from
|
* @param qdrantServerUrl the url to get the port from
|
||||||
*/
|
*/
|
||||||
static determinePortByUrl(qdrantServerUrl: string): number {
|
static determinePortByUrl(qdrantServerUrl: string): number {
|
||||||
const parsedUrl = new URL(qdrantServerUrl);
|
const parsedUrl = new URL(qdrantServerUrl)
|
||||||
|
|
||||||
let port = parsedUrl.port ? parseInt(parsedUrl.port) : 6663
|
let port = parsedUrl.port ? parseInt(parsedUrl.port) : 6663
|
||||||
|
|
||||||
if (parsedUrl.protocol === 'https:' && parsedUrl.port === '') {
|
if (parsedUrl.protocol === 'https:' && parsedUrl.port === '') {
|
||||||
port = 443;
|
port = 443
|
||||||
}
|
}
|
||||||
if (parsedUrl.protocol === 'http:' && parsedUrl.port === '') {
|
if (parsedUrl.protocol === 'http:' && parsedUrl.port === '') {
|
||||||
port = 80;
|
port = 80
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return port;
|
return port
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user