@mastra/mongodb 1.22.0-alpha.0 → 1.22.0

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.
@@ -3,7 +3,7 @@ name: mastra-mongodb
3
3
  description: Documentation for @mastra/mongodb. Use when working with @mastra/mongodb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mongodb"
6
- version: "1.22.0-alpha.0"
6
+ version: "1.22.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.0-alpha.0",
2
+ "version": "1.22.0",
3
3
  "package": "@mastra/mongodb",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ let _mastra_core_agent = require("@mastra/core/agent");
9
9
  let _mastra_core_evals = require("@mastra/core/evals");
10
10
  let _mastra_core_storage_domains_skills = require("@mastra/core/storage/domains/skills");
11
11
  //#region package.json
12
- var version = "1.22.0-alpha.0";
12
+ var version = "1.22.0";
13
13
  //#endregion
14
14
  //#region src/vector/filter.ts
15
15
  /**
@@ -9983,7 +9983,7 @@ var SchedulesMongoDB = class SchedulesMongoDB extends _mastra_core_storage.Sched
9983
9983
  if (!result) throw new Error(`Schedule ${id} not found`);
9984
9984
  return docToSchedule(result);
9985
9985
  }
9986
- async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
9986
+ async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
9987
9987
  return (await (await this.getSchedulesCollection()).updateOne({
9988
9988
  id,
9989
9989
  next_fire_at: expectedNextFireAt,
@@ -9992,7 +9992,8 @@ var SchedulesMongoDB = class SchedulesMongoDB extends _mastra_core_storage.Sched
9992
9992
  next_fire_at: newNextFireAt,
9993
9993
  last_fire_at: lastFireAt,
9994
9994
  last_run_id: lastRunId,
9995
- updated_at: Date.now()
9995
+ updated_at: Date.now(),
9996
+ ...newStatus ? { status: newStatus } : {}
9996
9997
  } })).matchedCount > 0;
9997
9998
  }
9998
9999
  async deleteSchedule(id) {