@mastra/mongodb 1.22.0-alpha.0 → 1.22.0-alpha.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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts +2 -2
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { MessageList } from "@mastra/core/agent";
|
|
|
8
8
|
import { saveScorePayloadSchema } from "@mastra/core/evals";
|
|
9
9
|
import { skillSnapshotFieldValuesEqual } from "@mastra/core/storage/domains/skills";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.22.0-alpha.
|
|
11
|
+
var version = "1.22.0-alpha.1";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/vector/filter.ts
|
|
14
14
|
/**
|
|
@@ -9982,7 +9982,7 @@ var SchedulesMongoDB = class SchedulesMongoDB extends SchedulesStorage {
|
|
|
9982
9982
|
if (!result) throw new Error(`Schedule ${id} not found`);
|
|
9983
9983
|
return docToSchedule(result);
|
|
9984
9984
|
}
|
|
9985
|
-
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
|
|
9985
|
+
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
|
|
9986
9986
|
return (await (await this.getSchedulesCollection()).updateOne({
|
|
9987
9987
|
id,
|
|
9988
9988
|
next_fire_at: expectedNextFireAt,
|
|
@@ -9991,7 +9991,8 @@ var SchedulesMongoDB = class SchedulesMongoDB extends SchedulesStorage {
|
|
|
9991
9991
|
next_fire_at: newNextFireAt,
|
|
9992
9992
|
last_fire_at: lastFireAt,
|
|
9993
9993
|
last_run_id: lastRunId,
|
|
9994
|
-
updated_at: Date.now()
|
|
9994
|
+
updated_at: Date.now(),
|
|
9995
|
+
...newStatus ? { status: newStatus } : {}
|
|
9995
9996
|
} })).matchedCount > 0;
|
|
9996
9997
|
}
|
|
9997
9998
|
async deleteSchedule(id) {
|