@mastra/cloudflare-d1 1.3.0-alpha.1 → 1.3.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
@@ -1260,7 +1260,7 @@ var MemoryStorageD1 = class extends MemoryStorage {
1260
1260
  "updatedAt"
1261
1261
  ];
1262
1262
  const values = [
1263
- title,
1263
+ title ?? thread.title,
1264
1264
  JSON.stringify(mergedMetadata),
1265
1265
  updatedAt.toISOString()
1266
1266
  ];
@@ -1271,7 +1271,7 @@ var MemoryStorageD1 = class extends MemoryStorage {
1271
1271
  });
1272
1272
  return {
1273
1273
  ...thread,
1274
- title,
1274
+ title: title ?? thread.title,
1275
1275
  metadata: {
1276
1276
  ...typeof thread.metadata === "string" ? JSON.parse(thread.metadata) : thread.metadata,
1277
1277
  ...metadata