@mastra/libsql 1.20.0-alpha.1 → 1.20.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
@@ -7449,7 +7449,7 @@ var MemoryLibSQL = class MemoryLibSQL extends MemoryStorage {
7449
7449
  const now = /* @__PURE__ */ new Date();
7450
7450
  const updatedThread = {
7451
7451
  ...thread,
7452
- title,
7452
+ title: title ?? thread.title,
7453
7453
  metadata: {
7454
7454
  ...thread.metadata,
7455
7455
  ...metadata
@@ -7458,9 +7458,9 @@ var MemoryLibSQL = class MemoryLibSQL extends MemoryStorage {
7458
7458
  };
7459
7459
  try {
7460
7460
  await this.#client.execute({
7461
- sql: `UPDATE ${TABLE_THREADS} SET title = ?, metadata = jsonb(?), updatedAt = ? WHERE id = ?`,
7461
+ sql: `UPDATE ${TABLE_THREADS} SET title = COALESCE(?, title), metadata = jsonb(?), updatedAt = ? WHERE id = ?`,
7462
7462
  args: [
7463
- title,
7463
+ title ?? null,
7464
7464
  JSON.stringify(updatedThread.metadata),
7465
7465
  now.toISOString(),
7466
7466
  id