@mastra/libsql 1.25.0 → 1.25.1

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
@@ -11454,16 +11454,17 @@ var SchedulesLibSQL = class SchedulesLibSQL extends SchedulesStorage {
11454
11454
  if (!updated) throw new Error(`Schedule ${id} not found`);
11455
11455
  return updated;
11456
11456
  }
11457
- async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
11457
+ async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
11458
11458
  return ((await this.#client.execute({
11459
11459
  sql: `UPDATE ${TABLE_SCHEDULES}
11460
- SET next_fire_at = ?, last_fire_at = ?, last_run_id = ?, updated_at = ?
11460
+ SET next_fire_at = ?, last_fire_at = ?, last_run_id = ?, updated_at = ?, status = COALESCE(?, status)
11461
11461
  WHERE id = ? AND next_fire_at = ? AND status = ?`,
11462
11462
  args: [
11463
11463
  newNextFireAt,
11464
11464
  lastFireAt,
11465
11465
  lastRunId,
11466
11466
  Date.now(),
11467
+ newStatus ?? null,
11467
11468
  id,
11468
11469
  expectedNextFireAt,
11469
11470
  "active"