Skip to content

Commit

Permalink
Merge pull request #11 from xDreamLand/patch-1
Browse files Browse the repository at this point in the history
await JSON response
  • Loading branch information
itschip authored Jul 15, 2021
2 parents a47feeb + b425af5 commit b280f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/utils/fetchNui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function fetchNui<T = any>(eventName: string, data?: any): Promise<

const resp = await fetch(`https://${resourceName}/${eventName}`, options);

const respFormatted = resp.json()
const respFormatted = await resp.json()

return respFormatted
}
}

0 comments on commit b280f9a

Please sign in to comment.