From 957d178dce3b8a3ed9c5352db144a3edf1d7994f Mon Sep 17 00:00:00 2001 From: Aryan-Verma-999 Date: Thu, 5 Mar 2026 23:50:19 +0530 Subject: [PATCH] fix(api): add missing await on response.json() in getUserStatus, userInfo, and userData --- packages/api/src/EmbeddedChatApi.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/EmbeddedChatApi.ts b/packages/api/src/EmbeddedChatApi.ts index 72e25a046..4f615fa4d 100644 --- a/packages/api/src/EmbeddedChatApi.ts +++ b/packages/api/src/EmbeddedChatApi.ts @@ -1243,7 +1243,7 @@ export default class EmbeddedChatApi { }, } ); - const data = response.json(); + const data = await response.json(); return data; } @@ -1260,7 +1260,7 @@ export default class EmbeddedChatApi { }, } ); - const data = response.json(); + const data = await response.json(); return data; } @@ -1277,7 +1277,7 @@ export default class EmbeddedChatApi { }, } ); - const data = response.json(); + const data = await response.json(); return data; } }