@mastra/mssql 1.7.0-alpha.1 → 1.7.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/CHANGELOG.md +19 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +2 -2
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2392,7 +2392,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2392
2392
|
text: `Thread ${id} not found`,
|
|
2393
2393
|
details: {
|
|
2394
2394
|
threadId: id,
|
|
2395
|
-
title
|
|
2395
|
+
title: title ?? null
|
|
2396
2396
|
}
|
|
2397
2397
|
});
|
|
2398
2398
|
const mergedMetadata = {
|
|
@@ -2411,7 +2411,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2411
2411
|
WHERE id = @id`;
|
|
2412
2412
|
const req = this.pool.request();
|
|
2413
2413
|
req.input("id", id);
|
|
2414
|
-
req.input("title", title);
|
|
2414
|
+
req.input("title", title ?? existingThread.title);
|
|
2415
2415
|
req.input("metadata", JSON.stringify(mergedMetadata));
|
|
2416
2416
|
req.input("updatedAt", /* @__PURE__ */ new Date());
|
|
2417
2417
|
const result = await req.query(sql);
|
|
@@ -2427,7 +2427,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2427
2427
|
text: `Thread ${id} not found after update`,
|
|
2428
2428
|
details: {
|
|
2429
2429
|
threadId: id,
|
|
2430
|
-
title
|
|
2430
|
+
title: title ?? null
|
|
2431
2431
|
}
|
|
2432
2432
|
});
|
|
2433
2433
|
return {
|
|
@@ -2443,7 +2443,7 @@ var MemoryMSSQL = class MemoryMSSQL extends MemoryStorage {
|
|
|
2443
2443
|
category: ErrorCategory.THIRD_PARTY,
|
|
2444
2444
|
details: {
|
|
2445
2445
|
threadId: id,
|
|
2446
|
-
title
|
|
2446
|
+
title: title ?? null
|
|
2447
2447
|
}
|
|
2448
2448
|
}, error);
|
|
2449
2449
|
}
|