@mastra/dynamodb 1.4.4 → 1.4.5-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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -3093,7 +3093,7 @@ var WorkflowStorageDynamoDB = class WorkflowStorageDynamoDB extends WorkflowsSto
|
|
|
3093
3093
|
entity: "workflow_snapshot",
|
|
3094
3094
|
workflow_name: workflowName,
|
|
3095
3095
|
run_id: runId
|
|
3096
|
-
}).go();
|
|
3096
|
+
}).go({ consistent: true });
|
|
3097
3097
|
const now = /* @__PURE__ */ new Date();
|
|
3098
3098
|
let snapshot;
|
|
3099
3099
|
let previousUpdatedAt;
|
|
@@ -3171,7 +3171,7 @@ var WorkflowStorageDynamoDB = class WorkflowStorageDynamoDB extends WorkflowsSto
|
|
|
3171
3171
|
entity: "workflow_snapshot",
|
|
3172
3172
|
workflow_name: workflowName,
|
|
3173
3173
|
run_id: runId
|
|
3174
|
-
}).go();
|
|
3174
|
+
}).go({ consistent: true });
|
|
3175
3175
|
const existingSnapshot = existingRecord.data?.snapshot;
|
|
3176
3176
|
const { expectedStatus, ...state } = opts;
|
|
3177
3177
|
if (!existingSnapshot?.context || !matchesExpectedWorkflowStatus(existingSnapshot.status, expectedStatus)) {
|
|
@@ -3283,7 +3283,7 @@ var WorkflowStorageDynamoDB = class WorkflowStorageDynamoDB extends WorkflowsSto
|
|
|
3283
3283
|
entity: "workflow_snapshot",
|
|
3284
3284
|
workflow_name: workflowName,
|
|
3285
3285
|
run_id: runId
|
|
3286
|
-
}).go();
|
|
3286
|
+
}).go({ consistent: true });
|
|
3287
3287
|
if (!result.data?.snapshot) return null;
|
|
3288
3288
|
return result.data.snapshot;
|
|
3289
3289
|
} catch (error) {
|
|
@@ -3380,7 +3380,7 @@ var WorkflowStorageDynamoDB = class WorkflowStorageDynamoDB extends WorkflowsSto
|
|
|
3380
3380
|
entity: "workflow_snapshot",
|
|
3381
3381
|
workflow_name: workflowName,
|
|
3382
3382
|
run_id: runId
|
|
3383
|
-
}).go();
|
|
3383
|
+
}).go({ consistent: true });
|
|
3384
3384
|
if (!result.data) return null;
|
|
3385
3385
|
const snapshot = result.data.snapshot;
|
|
3386
3386
|
return {
|