@axiom-lattice/pg-stores 1.0.70 → 1.0.71
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +9 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/PostgreSQLWorkflowTrackingStore.ts +13 -0
package/dist/index.mjs
CHANGED
|
@@ -3188,6 +3188,17 @@ var PostgreSQLWorkflowTrackingStore = class {
|
|
|
3188
3188
|
updatedAt: now
|
|
3189
3189
|
};
|
|
3190
3190
|
}
|
|
3191
|
+
async upsertRunStep(request) {
|
|
3192
|
+
await this.ensureInitialized();
|
|
3193
|
+
const result = await this.pool.query(
|
|
3194
|
+
`SELECT * FROM lattice_workflow_steps WHERE run_id = $1 AND step_type = $2 AND step_name = $3`,
|
|
3195
|
+
[request.runId, request.stepType, request.stepName]
|
|
3196
|
+
);
|
|
3197
|
+
if (result.rows.length > 0) {
|
|
3198
|
+
return this.mapRowToRunStep(result.rows[0]);
|
|
3199
|
+
}
|
|
3200
|
+
return this.createRunStep(request);
|
|
3201
|
+
}
|
|
3191
3202
|
async updateRunStep(runId, stepId, updates) {
|
|
3192
3203
|
await this.ensureInitialized();
|
|
3193
3204
|
const now = /* @__PURE__ */ new Date();
|