From 115a6da7e9dacc2b671751a8e0e9b3095afccac1 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 7 Aug 2025 14:18:12 -0600 Subject: [PATCH] quick BIG alert --- apps/web/src/api/buster_rest/reports/requests.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/web/src/api/buster_rest/reports/requests.ts b/apps/web/src/api/buster_rest/reports/requests.ts index 8b8f44cc3..b5257470b 100644 --- a/apps/web/src/api/buster_rest/reports/requests.ts +++ b/apps/web/src/api/buster_rest/reports/requests.ts @@ -54,5 +54,17 @@ export const updateReport = async ({ reportId, ...data }: UpdateReportRequest & { reportId: string }) => { - return mainApiV2.put(`/reports/${reportId}`, data).then((res) => res.data); + return mainApiV2 + .put(`/reports/${reportId}`, data) + .then((res) => res.data) + .catch((err) => { + console.error(err); + const IS_STAGING = window.location.hostname.includes('staging'); + if (IS_STAGING) { + alert( + 'Look at the request payload and TELL NATE IMMEDIATELY. This error will only show up staging.' + ); + } + throw err; + }); };