mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix for secret-sync import secrets creating a new version for secrets that did not change
This commit is contained in:
@@ -362,7 +362,7 @@ export const secretSyncQueueFactory = ({
|
||||
|
||||
if (Object.hasOwn(secretMap, key)) {
|
||||
// Only update secrets if the source value is not empty
|
||||
if (value) {
|
||||
if (value && value !== secretMap[key].value) {
|
||||
secretsToUpdate.push(secret);
|
||||
if (importBehavior === SecretSyncImportBehavior.PrioritizeDestination) importedSecretMap[key] = secretData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user