@mastra/mongodb 1.17.0-alpha.1 → 1.17.0-alpha.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.
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { MessageList } from "@mastra/core/agent";
9
9
  import { saveScorePayloadSchema } from "@mastra/core/evals";
10
10
  import { skillSnapshotFieldValuesEqual } from "@mastra/core/storage/domains/skills";
11
11
  //#region package.json
12
- var version = "1.17.0-alpha.1";
12
+ var version = "1.17.0-alpha.2";
13
13
  //#endregion
14
14
  //#region src/vector/filter.ts
15
15
  /**
@@ -6003,7 +6003,7 @@ var MemoryStorageMongoDB = class MemoryStorageMongoDB extends MemoryStorage {
6003
6003
  const now = /* @__PURE__ */ new Date();
6004
6004
  const updatedThread = {
6005
6005
  ...thread,
6006
- title,
6006
+ title: title ?? thread.title,
6007
6007
  metadata: {
6008
6008
  ...thread.metadata,
6009
6009
  ...metadata
@@ -6012,7 +6012,7 @@ var MemoryStorageMongoDB = class MemoryStorageMongoDB extends MemoryStorage {
6012
6012
  };
6013
6013
  try {
6014
6014
  await (await this.getCollection(TABLE_THREADS)).updateOne({ id }, { $set: {
6015
- title,
6015
+ title: updatedThread.title,
6016
6016
  metadata: updatedThread.metadata,
6017
6017
  updatedAt: now
6018
6018
  } });