@mastra/dynamodb 0.0.0-remove-unused-import-20250909212718 → 0.0.0-roamin-openaivoice-speak-options-passing-20250926163614

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",
@@ -2756,8 +2756,6 @@ var WorkflowStorageDynamoDB = class extends WorkflowsStorage {
2756
2756
  async getWorkflowRunById(args) {
2757
2757
  const { runId, workflowName } = args;
2758
2758
  this.logger.debug("Getting workflow run by ID", { runId, workflowName });
2759
- console.log("workflowName", workflowName);
2760
- console.log("runId", runId);
2761
2759
  try {
2762
2760
  if (workflowName) {
2763
2761
  this.logger.debug("WorkflowName provided, using direct GET operation.");
@@ -2767,7 +2765,6 @@ var WorkflowStorageDynamoDB = class extends WorkflowsStorage {
2767
2765
  workflow_name: workflowName,
2768
2766
  run_id: runId
2769
2767
  }).go();
2770
- console.log("result", result2);
2771
2768
  if (!result2.data) {
2772
2769
  return null;
2773
2770
  }
@@ -3039,9 +3036,10 @@ var DynamoDBStore = class extends MastraStorage {
3039
3036
  async persistWorkflowSnapshot({
3040
3037
  workflowName,
3041
3038
  runId,
3039
+ resourceId,
3042
3040
  snapshot
3043
3041
  }) {
3044
- return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
3042
+ return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
3045
3043
  }
3046
3044
  async loadWorkflowSnapshot({
3047
3045
  workflowName,