@teamkeel/functions-runtime 0.413.7 → 0.413.9
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.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -2786,10 +2786,6 @@ async function handleFlow(request, config) {
|
|
|
2786
2786
|
db = createDatabaseClient({
|
|
2787
2787
|
connString: request.meta?.secrets?.KEEL_DB_CONN
|
|
2788
2788
|
});
|
|
2789
|
-
const flowRun = await db.selectFrom("keel.flow_run").where("id", "=", runId).selectAll().executeTakeFirst();
|
|
2790
|
-
if (!flowRun) {
|
|
2791
|
-
throw new Error("no flow run found");
|
|
2792
|
-
}
|
|
2793
2789
|
const ctx = createFlowContext(
|
|
2794
2790
|
request.meta.runId,
|
|
2795
2791
|
request.meta.data,
|
|
@@ -2810,7 +2806,7 @@ async function handleFlow(request, config) {
|
|
|
2810
2806
|
return stage;
|
|
2811
2807
|
})
|
|
2812
2808
|
};
|
|
2813
|
-
const inputs = parseInputs(
|
|
2809
|
+
const inputs = parseInputs(request.meta?.inputs);
|
|
2814
2810
|
try {
|
|
2815
2811
|
await tryExecuteFlow(db, async () => {
|
|
2816
2812
|
return flowFunction(ctx, inputs);
|