瀏覽代碼

Merge pull request #588 from smiclea/fix-duplicate

Fix endpoint duplicate issue
Nashwan Azhari 6 年之前
父節點
當前提交
0d10118bad
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/sources/EndpointSource.ts

+ 1 - 1
src/sources/EndpointSource.ts

@@ -210,7 +210,7 @@ class EndpointSource {
 
   async add(endpoint: Endpoint, skipSchemaParser: boolean = false): Promise<Endpoint> {
     const parsedConnectionInfo: any = skipSchemaParser
-      ? { ...endpoint } : SchemaParser.connectionInfoToPayload(endpoint)
+      ? { ...endpoint.connection_info } : SchemaParser.connectionInfoToPayload(endpoint)
     let newEndpoint: any = {}
     let connectionInfo: any = {}
     if (configLoader.config.useBarbicanSecrets