@mastra/dynamodb 1.0.0-beta.0 → 1.0.0-beta.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/index.js CHANGED
@@ -2268,7 +2268,6 @@ var WorkflowStorageDynamoDB = class extends WorkflowsStorage {
2268
2268
  workflow_name: workflowName,
2269
2269
  run_id: runId,
2270
2270
  snapshot: JSON.stringify(snapshot),
2271
- // Stringify the snapshot object
2272
2271
  createdAt: now,
2273
2272
  updatedAt: now,
2274
2273
  resourceId
@@ -2353,6 +2352,11 @@ var WorkflowStorageDynamoDB = class extends WorkflowsStorage {
2353
2352
  });
2354
2353
  if (pageResults.data && pageResults.data.length > 0) {
2355
2354
  let pageFilteredData = pageResults.data;
2355
+ if (args?.status) {
2356
+ pageFilteredData = pageFilteredData.filter((snapshot) => {
2357
+ return snapshot.snapshot.status === args.status;
2358
+ });
2359
+ }
2356
2360
  if (args?.fromDate || args?.toDate) {
2357
2361
  pageFilteredData = pageFilteredData.filter((snapshot) => {
2358
2362
  const createdAt = new Date(snapshot.createdAt);