We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dd874c commit a94656cCopy full SHA for a94656c
1 file changed
transcripts/transcript_helpers.sh
@@ -60,7 +60,7 @@ project_id_from_handle_and_slug () {
60
fi
61
handle="$1"
62
slug="$2"
63
- pg_sql "SELECT 'P-' || project_id FROM debug_projects WHERE handle = '${handle}' AND slug = '${slug}';"
+ 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}';"
64
}
65
66
# Creates a user and returns the user id
0 commit comments