This commit is contained in:
Ruben Fiszel
2026-05-07 14:20:18 +00:00
285 changed files with 14142 additions and 4788 deletions
+12 -3
View File
@@ -981,7 +981,10 @@ async fn create_script_internal<'c>(
.await?;
}
let clashing_script = sqlx::query_as::<_, Script<ScriptRunnableSettingsHandle>>(
"SELECT * FROM script WHERE path = $1 AND archived = false AND workspace_id = $2",
&format!(
"SELECT {} FROM script WHERE path = $1 AND archived = false AND workspace_id = $2",
windmill_common::scripts::SCRIPT_COLUMNS,
),
)
.bind(&ns.path)
.bind(&w_id)
@@ -1812,7 +1815,10 @@ async fn get_script_by_path(
.await?
} else {
sqlx::query_as::<_, ScriptWithStarred<ScriptRunnableSettingsHandle>>(
"SELECT *, NULL as starred FROM script WHERE path = $1 AND workspace_id = $2 ORDER BY created_at DESC LIMIT 1",
&format!(
"SELECT {}, NULL as starred FROM script WHERE path = $1 AND workspace_id = $2 ORDER BY created_at DESC LIMIT 1",
windmill_common::scripts::SCRIPT_COLUMNS,
),
)
.bind(path)
.bind(w_id)
@@ -2327,7 +2333,10 @@ async fn get_script_by_hash_internal<'c>(
.await?
} else {
sqlx::query_as::<_, ScriptWithStarred<ScriptRunnableSettingsHandle>>(
"SELECT *, NULL as starred FROM script WHERE hash = $1 AND workspace_id = $2",
&format!(
"SELECT {}, NULL as starred FROM script WHERE hash = $1 AND workspace_id = $2",
windmill_common::scripts::SCRIPT_COLUMNS,
),
)
.bind(hash)
.bind(workspace_id)