Fixing test issue

This commit is contained in:
Bala Lakshmi Narayanasami
2022-07-20 20:17:28 +05:30
parent 667d92f050
commit 3b27975895
2 changed files with 4 additions and 3 deletions

View File

@@ -469,6 +469,10 @@ export default class Explorer {
}
private async generateConversationToken() {
if (userContext.databaseAccount === undefined || !userContext.databaseAccount.id === undefined) {
console.error("Database account not set");
return;
}
try {
const tokenResponse = await this.chatbotClient.getConversationToken();
this.conversationToken(tokenResponse?.token);