mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-25 20:54:18 +00:00
Few more build fixes
This commit is contained in:
@@ -469,12 +469,11 @@ export default class Explorer {
|
||||
|
||||
private async generateConversationToken() {
|
||||
if (!userContext.databaseAccount || !userContext.databaseAccount.id) {
|
||||
console.error("Database account undefined");
|
||||
return;
|
||||
}
|
||||
const url = `${configContext.JUNO_ENDPOINT}/api/chatbot/bot${userContext.databaseAccount.id}/conversationToken`;
|
||||
const authorizationHeader = getAuthorizationHeader();
|
||||
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: "GET",
|
||||
|
||||
Reference in New Issue
Block a user