chore: refactoring (naming convention)

This commit is contained in:
hakeemsyd 2024-01-12 01:36:57 +05:00 committed by Ilango
parent 4b9b30bf7a
commit 4b39b4115b
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class AstraApi implements INodeCredential {
class AstraDBApi implements INodeCredential {
label: string
name: string
version: number
@ -8,12 +8,12 @@ class AstraApi implements INodeCredential {
inputs: INodeParams[]
constructor() {
this.label = 'Astra API'
this.name = 'AstraApi'
this.label = 'Astra DB API'
this.name = 'AstraDBApi'
this.version = 1.0
this.inputs = [
{
label: 'Colection Name',
label: 'Collection Name',
name: 'collectionName',
type: 'string'
},
@ -31,4 +31,4 @@ class AstraApi implements INodeCredential {
}
}
module.exports = { credClass: AstraApi }
module.exports = { credClass: AstraDBApi }

View File

@ -33,7 +33,7 @@ class Astra_VectorStores implements INode {
label: 'Connect Credential',
name: 'credential',
type: 'credential',
credentialNames: ['AstraApi']
credentialNames: ['AstraDBApi']
}
this.inputs = [
{