File tree 1 file changed +2
-13
lines changed
src/plugins/plugin-database-weaviate 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import weaviate, {
34
34
WeaviateClient ,
35
35
weaviateV2 ,
36
36
} from 'weaviate-client'
37
- import { z } from 'zod'
38
37
import { Database } from './database'
39
38
import { Config , Context , configSchema } from './plugin.types'
40
39
import { SchemaManager } from './SchemaManager'
@@ -84,18 +83,8 @@ export class WeaviateDatabase implements PluginLifecycle {
84
83
85
84
constructor ( ) { }
86
85
87
- initialize = async ( config : Record < string , any > ) => {
88
- try {
89
- this . config = configSchema . parse ( config )
90
- } catch ( e ) {
91
- if ( e instanceof z . ZodError ) {
92
- throw new PluginLifecycle . ConfigurationError (
93
- config ,
94
- e . issues . map ( ( issue ) => `'${ issue . path } ' ${ issue . message } ` ) ,
95
- )
96
- }
97
- throw e
98
- }
86
+ initialize = async ( config : Config ) => {
87
+ this . config = config
99
88
100
89
const { connection } = this . config
101
90
const auth = connection . auth
You can’t perform that action at this time.
0 commit comments