Skip to content

Commit

Permalink
fixes an issue where when webapi adapter init db parameter was ingored
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Kytka committed Nov 9, 2023
1 parent b17bd4c commit 2ea287c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static ConnectorAdapter CreateWebApi(this ConnectorAdapterBuilder adapter
string dbName = "\"TGlobalVariablesDB\"")
{
return new ConnectorAdapter(typeof(WebApiConnectorFactory))
{ Parameters = new object[] { ipAddress, userName, password, ignoreSSLErros } };
{ Parameters = new object[] { ipAddress, userName, password, ignoreSSLErros, dbName } };
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public override Connector CreateConnector(object[] parameters)
return new WebApiConnector((string)parameters[0],
(string)parameters[1],
(string)parameters[2],
(bool)parameters[3]);
(bool)parameters[3],
(string)parameters[4]);
}

/// <inheritdoc />
Expand Down

0 comments on commit 2ea287c

Please sign in to comment.