@mastra/pg 1.20.0-alpha.2 → 1.20.0-alpha.3

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
@@ -9176,7 +9176,7 @@ var MemoryPG = class MemoryPG extends MemoryStorage {
9176
9176
  text: `Thread ${id} not found`,
9177
9177
  details: {
9178
9178
  threadId: id,
9179
- title
9179
+ title: title ?? null
9180
9180
  }
9181
9181
  });
9182
9182
  const mergedMetadata = {
@@ -9187,14 +9187,14 @@ var MemoryPG = class MemoryPG extends MemoryStorage {
9187
9187
  const nowStr = toUtcISOString(/* @__PURE__ */ new Date());
9188
9188
  const thread = await this.#db.client.one(`UPDATE ${threadTableName}
9189
9189
  SET
9190
- title = $1,
9190
+ title = COALESCE($1, title),
9191
9191
  metadata = $2,
9192
9192
  "updatedAt" = $3,
9193
9193
  "updatedAtZ" = $4
9194
9194
  WHERE id = $5
9195
9195
  RETURNING *
9196
9196
  `, [
9197
- title,
9197
+ title ?? null,
9198
9198
  mergedMetadata,
9199
9199
  nowStr,
9200
9200
  nowStr,
@@ -9215,7 +9215,7 @@ var MemoryPG = class MemoryPG extends MemoryStorage {
9215
9215
  category: ErrorCategory.THIRD_PARTY,
9216
9216
  details: {
9217
9217
  threadId: id,
9218
- title
9218
+ title: title ?? null
9219
9219
  }
9220
9220
  }, error);
9221
9221
  }