Add awaits
This commit is contained in:
parent
f11180db7a
commit
631a5e3e31
8 changed files with 14 additions and 13 deletions
|
@ -40,7 +40,7 @@ const useSocket = (
|
|||
);
|
||||
|
||||
const providers = await fetch(
|
||||
`${getServerEnv("BACKEND_API_URL")}/models`,
|
||||
`${await getServerEnv("BACKEND_API_URL")}/models`,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
@ -221,7 +221,7 @@ const loadMessages = async (
|
|||
setNotFound: (notFound: boolean) => void,
|
||||
) => {
|
||||
const res = await fetch(
|
||||
`${getServerEnv("BACKEND_API_URL")}/chats/${chatId}`,
|
||||
`${await getServerEnv("BACKEND_API_URL")}/chats/${chatId}`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue