mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: lowercase workspace for url
This commit is contained in:
@@ -127,10 +127,13 @@ export const WindmillSyncFns = {
|
||||
syncSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
||||
const {
|
||||
connection,
|
||||
destinationConfig: { workspace, path },
|
||||
destinationConfig: { path },
|
||||
syncOptions: { disableSecretDeletion }
|
||||
} = secretSync;
|
||||
|
||||
// url needs to be lowercase
|
||||
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||
|
||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||
|
||||
const { accessToken } = connection.credentials;
|
||||
@@ -186,9 +189,12 @@ export const WindmillSyncFns = {
|
||||
removeSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
||||
const {
|
||||
connection,
|
||||
destinationConfig: { workspace, path }
|
||||
destinationConfig: { path }
|
||||
} = secretSync;
|
||||
|
||||
// url needs to be lowercase
|
||||
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||
|
||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||
|
||||
const { accessToken } = connection.credentials;
|
||||
@@ -216,9 +222,12 @@ export const WindmillSyncFns = {
|
||||
getSecrets: async (secretSync: TWindmillSyncWithCredentials) => {
|
||||
const {
|
||||
connection,
|
||||
destinationConfig: { workspace, path }
|
||||
destinationConfig: { path }
|
||||
} = secretSync;
|
||||
|
||||
// url needs to be lowercase
|
||||
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||
|
||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||
|
||||
const { accessToken } = connection.credentials;
|
||||
|
||||
Reference in New Issue
Block a user