Skip to content

Commit

Permalink
Don't cache response object
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Nov 2, 2023
1 parent 4c96e55 commit 39be68a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/api-mocks/msw/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 39be68a

Please sign in to comment.