@mastra/dsql 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
@@ -2100,7 +2100,7 @@ var MemoryDSQL = class MemoryDSQL extends MemoryStorage {
2100
2100
  text: `Thread ${id} not found`,
2101
2101
  details: {
2102
2102
  threadId: id,
2103
- title
2103
+ title: title ?? null
2104
2104
  }
2105
2105
  });
2106
2106
  const mergedMetadata = {
@@ -2110,14 +2110,14 @@ var MemoryDSQL = class MemoryDSQL extends MemoryStorage {
2110
2110
  const now = (/* @__PURE__ */ new Date()).toISOString();
2111
2111
  const thread = await this.#db.client.one(`UPDATE ${threadTableName}
2112
2112
  SET
2113
- title = $1,
2113
+ title = COALESCE($1, title),
2114
2114
  metadata = $2,
2115
2115
  "updatedAt" = $3::timestamp,
2116
2116
  "updatedAtZ" = $4::timestamptz
2117
2117
  WHERE id = $5
2118
2118
  RETURNING *
2119
2119
  `, [
2120
- title,
2120
+ title ?? null,
2121
2121
  JSON.stringify(mergedMetadata),
2122
2122
  now,
2123
2123
  now,
@@ -2141,7 +2141,7 @@ var MemoryDSQL = class MemoryDSQL extends MemoryStorage {
2141
2141
  category: ErrorCategory.THIRD_PARTY,
2142
2142
  details: {
2143
2143
  threadId: id,
2144
- title
2144
+ title: title ?? null
2145
2145
  }
2146
2146
  }, error);
2147
2147
  });