Merge pull request #3137 from Infisical/flyio-integration-propagate-errors

Fix: Propagate Set Secrets Errors for Flyio Integration
This commit is contained in:
Scott Wilson
2025-02-20 16:26:35 -08:00
committed by GitHub

View File

@@ -2257,7 +2257,9 @@ const syncSecretsFlyio = async ({
}
`;
await request.post(
type TFlyioErrors = { message: string }[];
const setSecretsResp = await request.post<{ errors?: TFlyioErrors }>(
IntegrationUrls.FLYIO_API_URL,
{
query: SetSecrets,
@@ -2279,6 +2281,10 @@ const syncSecretsFlyio = async ({
}
);
if (setSecretsResp.data.errors?.length) {
throw new Error(JSON.stringify(setSecretsResp.data.errors));
}
// get secrets
interface FlyioSecret {
name: string;