@mastra/mongodb 0.14.0 → 0.14.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/CHANGELOG.md +9 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1997,6 +1997,7 @@ var WorkflowsStorageMongoDB = class extends WorkflowsStorage {
|
|
|
1997
1997
|
async persistWorkflowSnapshot({
|
|
1998
1998
|
workflowName,
|
|
1999
1999
|
runId,
|
|
2000
|
+
resourceId,
|
|
2000
2001
|
snapshot
|
|
2001
2002
|
}) {
|
|
2002
2003
|
try {
|
|
@@ -2007,6 +2008,7 @@ var WorkflowsStorageMongoDB = class extends WorkflowsStorage {
|
|
|
2007
2008
|
$set: {
|
|
2008
2009
|
workflow_name: workflowName,
|
|
2009
2010
|
run_id: runId,
|
|
2011
|
+
resourceId,
|
|
2010
2012
|
snapshot,
|
|
2011
2013
|
createdAt: /* @__PURE__ */ new Date(),
|
|
2012
2014
|
updatedAt: /* @__PURE__ */ new Date()
|
|
@@ -2328,9 +2330,10 @@ var MongoDBStore = class extends MastraStorage {
|
|
|
2328
2330
|
async persistWorkflowSnapshot({
|
|
2329
2331
|
workflowName,
|
|
2330
2332
|
runId,
|
|
2333
|
+
resourceId,
|
|
2331
2334
|
snapshot
|
|
2332
2335
|
}) {
|
|
2333
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2336
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2334
2337
|
}
|
|
2335
2338
|
async loadWorkflowSnapshot({
|
|
2336
2339
|
workflowName,
|