test: tidy runnable app paths scope test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-12-03 00:11:18 +01:00
co-authored by Claude Opus 5.5
parent ee9d0d2473
commit 99f95b5307
2 changed files with 3 additions and 4 deletions
@@ -25,9 +25,8 @@ async fn test_runnable_app_paths_filtered_by_token_scope(db: Pool<Postgres>) ->
for (id, path) in [(999801i64, "u/test-user/a"), (999802, "u/test-user-2/b")] {
sqlx::query(
"INSERT INTO app (id, workspace_id, path, summary, policy, versions, extra_perms)
VALUES ($1, 'test-workspace', $2, '', '{}'::jsonb, '{}',
'{\"u/test-user\": true}'::jsonb)",
"INSERT INTO app (id, workspace_id, path, summary, policy, versions)
VALUES ($1, 'test-workspace', $2, '', '{}'::jsonb, '{}')",
)
.bind(id)
.bind(path)
+1 -1
View File
@@ -2898,7 +2898,7 @@ async fn list_paths_from_workspace_runnable(
let mut tx = user_db.begin(&authed).await?;
let mut runnables = sqlx::query_scalar!(
r#"SELECT a.path
FROM workspace_runnable_dependencies wru
FROM workspace_runnable_dependencies wru
JOIN app a
ON wru.app_path = a.path AND wru.workspace_id = a.workspace_id
WHERE wru.runnable_path = $1 AND wru.runnable_is_flow = $2 AND wru.workspace_id = $3"#,