feat(web): add workflow inputs code template

This commit is contained in:
BennyKok
2023-12-21 17:35:48 +08:00
parent c2d67da7db
commit 91b8c4d702
5 changed files with 118 additions and 58 deletions
+2 -6
View File
@@ -8,7 +8,7 @@ export async function findAllRuns(workflow_id: string) {
orderBy: desc(workflowRunsTable.created_at),
limit: 10,
extras: {
"number": sql<number>`row_number() over (order by created_at)`.as("number"),
number: sql<number>`row_number() over (order by created_at)`.as("number"),
},
with: {
machine: {
@@ -36,11 +36,7 @@ export async function findAllDeployments(workflow_id: string) {
name: true,
},
},
version: {
columns: {
version: true,
},
},
version: true,
},
});
}