@mastra/dynamodb 0.15.1 → 0.15.2-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/index.js CHANGED
@@ -2626,11 +2626,11 @@ var WorkflowStorageDynamoDB = class extends WorkflowsStorage {
2626
2626
  async persistWorkflowSnapshot({
2627
2627
  workflowName,
2628
2628
  runId,
2629
+ resourceId,
2629
2630
  snapshot
2630
2631
  }) {
2631
2632
  this.logger.debug("Persisting workflow snapshot", { workflowName, runId });
2632
2633
  try {
2633
- const resourceId = "resourceId" in snapshot ? snapshot.resourceId : void 0;
2634
2634
  const now = (/* @__PURE__ */ new Date()).toISOString();
2635
2635
  const data = {
2636
2636
  entity: "workflow_snapshot",
@@ -3039,9 +3039,10 @@ var DynamoDBStore = class extends MastraStorage {
3039
3039
  async persistWorkflowSnapshot({
3040
3040
  workflowName,
3041
3041
  runId,
3042
+ resourceId,
3042
3043
  snapshot
3043
3044
  }) {
3044
- return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
3045
+ return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
3045
3046
  }
3046
3047
  async loadWorkflowSnapshot({
3047
3048
  workflowName,