Преглед изворни кода

Merge pull request #588 from smiclea/fix-duplicate

Fix endpoint duplicate issue
Nashwan Azhari пре 5 година
родитељ
комит
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