mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 12:04:03 +00:00
Move secretSuffix to separate metadata field
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import Queue, { Job } from "bull";
|
||||
import Integration from "../../models/integration";
|
||||
import IntegrationAuth from "../../models/integrationAuth";
|
||||
import { Integration, IntegrationAuth } from "../../models";
|
||||
import { BotService } from "../../services";
|
||||
import { getIntegrationAuthAccessHelper } from "../../helpers";
|
||||
import { syncSecrets } from "../../integrations/sync"
|
||||
@@ -37,9 +36,9 @@ syncSecretsToThirdPartyServices.process(async (job: Job) => {
|
||||
});
|
||||
|
||||
const suffixedSecrets: any = {};
|
||||
if (integration?.secretSuffix) {
|
||||
if (integration.metadata?.secretSuffix) {
|
||||
for (const key in secrets) {
|
||||
const newKey = key + integration?.secretSuffix;
|
||||
const newKey = key + integration.metadata?.secretSuffix;
|
||||
suffixedSecrets[newKey] = secrets[key];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user