From 39be68a7b75d23d5a7cb721dcad5933090384a29 Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Thu, 2 Nov 2023 11:12:15 -0400 Subject: [PATCH] Don't cache response object --- libs/api-mocks/msw/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/api-mocks/msw/util.ts b/libs/api-mocks/msw/util.ts index 7edfcd5ff..b729cd2b2 100644 --- a/libs/api-mocks/msw/util.ts +++ b/libs/api-mocks/msw/util.ts @@ -87,7 +87,8 @@ export function getTimestamps() { return { time_created: now, time_modified: now } } -export const unavailableErr = json({ error_code: 'ServiceUnavailable' }, { status: 503 }) +export const unavailableErr = () => + json({ error_code: 'ServiceUnavailable' }, { status: 503 }) export const NotImplemented = () => { throw json({ error_code: 'NotImplemented' }, { status: 501 })