mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: propagate set secrets error for flyio integration
This commit is contained in:
@@ -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,
|
IntegrationUrls.FLYIO_API_URL,
|
||||||
{
|
{
|
||||||
query: SetSecrets,
|
query: SetSecrets,
|
||||||
@@ -2279,6 +2281,10 @@ const syncSecretsFlyio = async ({
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (setSecretsResp.data.errors?.length) {
|
||||||
|
throw new Error(JSON.stringify(setSecretsResp.data.errors));
|
||||||
|
}
|
||||||
|
|
||||||
// get secrets
|
// get secrets
|
||||||
interface FlyioSecret {
|
interface FlyioSecret {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user