@mastra/mysql 0.12.0 → 0.12.1-alpha.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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- 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/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -9127,12 +9127,13 @@ var SchedulesMySQL = class SchedulesMySQL extends _mastra_core_storage.Schedules
|
|
|
9127
9127
|
if (!updated) throw new Error(`Schedule ${id} not found`);
|
|
9128
9128
|
return updated;
|
|
9129
9129
|
}
|
|
9130
|
-
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
|
|
9131
|
-
const [result] = await this.pool.execute(`UPDATE ${formatTableName(_mastra_core_storage.TABLE_SCHEDULES)} SET ${quoteIdentifier("next_fire_at", "column name")} = ?, ${quoteIdentifier("last_fire_at", "column name")} = ?, ${quoteIdentifier("last_run_id", "column name")} = ?, ${quoteIdentifier("updated_at", "column name")} =
|
|
9130
|
+
async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
|
|
9131
|
+
const [result] = await this.pool.execute(`UPDATE ${formatTableName(_mastra_core_storage.TABLE_SCHEDULES)} SET ${quoteIdentifier("next_fire_at", "column name")} = ?, ${quoteIdentifier("last_fire_at", "column name")} = ?, ${quoteIdentifier("last_run_id", "column name")} = ?, ${quoteIdentifier("updated_at", "column name")} = ?, ${quoteIdentifier("status", "column name")} = COALESCE(?, ${quoteIdentifier("status", "column name")}) WHERE ${quoteIdentifier("id", "column name")} = ? AND ${quoteIdentifier("next_fire_at", "column name")} = ? AND ${quoteIdentifier("status", "column name")} = ?`, [
|
|
9132
9132
|
newNextFireAt,
|
|
9133
9133
|
lastFireAt,
|
|
9134
9134
|
lastRunId,
|
|
9135
9135
|
Date.now(),
|
|
9136
|
+
newStatus ?? null,
|
|
9136
9137
|
id,
|
|
9137
9138
|
expectedNextFireAt,
|
|
9138
9139
|
"active"
|