wip
This commit is contained in:
parent
7d4ced15c6
commit
15cc5f44e9
15 changed files with 85 additions and 65 deletions
|
|
@ -123,7 +123,7 @@ export const promisedRequest = async ({
|
|||
const { ok, status } = response
|
||||
|
||||
if (ok) {
|
||||
return { response, status, data }
|
||||
return { response, status, data, timestamp: Date.now() }
|
||||
} else {
|
||||
throw new StatusCodeError(response.status, data, { url, options }, response)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue