diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts index 287722d95..70e3435a2 100644 --- a/backend/src/services/integration-auth/integration-sync-secret.ts +++ b/backend/src/services/integration-auth/integration-sync-secret.ts @@ -454,7 +454,9 @@ const syncSecretsAWSParameterStore = async ({ }) => { let response: { isSynced: boolean; syncMessage: string } | null = null; - if (!accessId) return null; + if (!accessId) { + throw new Error("AWS access ID is required"); + } const config = new AWS.Config({ region: integration.region as string, diff --git a/backend/src/services/secret/secret-queue.ts b/backend/src/services/secret/secret-queue.ts index ba0999494..ac27d912f 100644 --- a/backend/src/services/secret/secret-queue.ts +++ b/backend/src/services/secret/secret-queue.ts @@ -562,8 +562,8 @@ export const secretQueueFactory = ({ await integrationDAL.updateById(integration.id, { lastSyncJobId: job.id, lastUsed: new Date(), - syncMessage: response?.syncMessage || "", - isSynced: response?.isSynced || true + syncMessage: response?.syncMessage ?? "", + isSynced: response?.isSynced ?? true }); } catch (err) { logger.info("Secret integration sync error: %o", err);