Skip to content

Commit a94656c

Browse files
committed
Don't rely on debug views in transcripts
1 parent 7dd874c commit a94656c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transcripts/transcript_helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ project_id_from_handle_and_slug () {
6060
fi
6161
handle="$1"
6262
slug="$2"
63-
pg_sql "SELECT 'P-' || project_id FROM debug_projects WHERE handle = '${handle}' AND slug = '${slug}';"
63+
pg_sql "SELECT 'P-' || p.id FROM projects p JOIN users u ON p.owner_user_id = u.id WHERE u.handle = '${handle}' AND p.slug = '${slug}';"
6464
}
6565

6666
# Creates a user and returns the user id

0 commit comments

Comments
 (0)