mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
Fix
This commit is contained in:
@@ -76,13 +76,16 @@ const getConnectionConfig = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getSqlConnectionClient = async (appConnection: Pick<TSqlConnection, "credentials" | "app">) => {
|
export const getSqlConnectionClient = async (
|
||||||
|
appConnection: Pick<TSqlConnection, "credentials" | "app" | "gatewayId">
|
||||||
|
) => {
|
||||||
const {
|
const {
|
||||||
app,
|
app,
|
||||||
credentials: { host: baseHost, database, port, password, username }
|
credentials: { host: baseHost, database, port, password, username },
|
||||||
|
gatewayId
|
||||||
} = appConnection;
|
} = appConnection;
|
||||||
|
|
||||||
const [host] = await verifyHostInputValidity(baseHost);
|
const [host] = await verifyHostInputValidity(baseHost, !!gatewayId);
|
||||||
|
|
||||||
const client = knex({
|
const client = knex({
|
||||||
client: SQL_CONNECTION_CLIENT_MAP[app],
|
client: SQL_CONNECTION_CLIENT_MAP[app],
|
||||||
|
|||||||
Reference in New Issue
Block a user