mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
improvement: refine status check
This commit is contained in:
@@ -75,8 +75,11 @@ const getGcpSecrets = async (accessToken: string, secretSync: TGcpSyncWithCreden
|
|||||||
if (
|
if (
|
||||||
error instanceof AxiosError &&
|
error instanceof AxiosError &&
|
||||||
(error.response?.status === 404 ||
|
(error.response?.status === 404 ||
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
(error.response?.status === 400 &&
|
||||||
(error.response?.status === 400 && error.response.data.error.status === "FAILED_PRECONDITION"))
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
|
error.response.data.error.status === "FAILED_PRECONDITION" &&
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call
|
||||||
|
error.response.data.error.message.match(/(?:disabled|destroyed)/i)))
|
||||||
) {
|
) {
|
||||||
res[key] = "";
|
res[key] = "";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user