@botfabrik/engine-webclient 4.43.1 → 4.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -30,7 +30,6 @@ exports.CLIENT_TYPE = exports.Devices = void 0;
30
30
  const engine_domain_1 = require("@botfabrik/engine-domain");
31
31
  const engine_transcript_export_1 = require("@botfabrik/engine-transcript-export");
32
32
  const express = __importStar(require("express"));
33
- const mongodb_1 = require("mongodb");
34
33
  const createSessionInfo_1 = __importDefault(require("./createSessionInfo"));
35
34
  const getSupportedClientLocale_1 = __importDefault(require("./getSupportedClientLocale"));
36
35
  const loadPreviousConversation_1 = __importDefault(require("./loadPreviousConversation"));
@@ -147,7 +146,7 @@ exports.default = (clientName, environment, props) => async (bot) => {
147
146
  await session.dispatch((0, engine_domain_1.guestDisconnected)(sessionId));
148
147
  });
149
148
  socket.on('conversation-rating', async (rating) => {
150
- sessionsCollection.updateOne({ _id: new mongodb_1.ObjectId(sessionId) }, { $set: { 'sessionInfo.client.payload.conversationRating': rating } });
149
+ sessionsCollection.updateOne({ _id: sessionId }, { $set: { 'sessionInfo.client.payload.conversationRating': rating } });
151
150
  session.dispatch({ type: engine_domain_1.ActionTypes.CONVERSATION_RATING_FROM_GUEST, payload: { rating } });
152
151
  });
153
152
  socket.on('audio-message', async (buffer) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.43.1",
3
+ "version": "4.43.2",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,5 +41,5 @@
41
41
  "rimraf": "^5.0.1",
42
42
  "typescript": "^5.1.6"
43
43
  },
44
- "gitHead": "a1c73f1b9ac587964a4d7487773bb3d631abab6a"
44
+ "gitHead": "536b61614475b18a9c42b6298ac22bdc1fc2fb7f"
45
45
  }