Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 54 additions & 54 deletions server/bleep/sqlx-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,60 @@
},
"query": "SELECT repo_ref\n FROM project_repos\n WHERE project_id = $1 AND EXISTS (\n SELECT id\n FROM projects\n WHERE id = $1 AND user_id = $2\n )"
},
"a80c38e828ea4c3657ead89145e263af0ca709039ad9d57f45ddbde88af1acf0": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "url",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "index_status",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "favicon",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "description",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "modified_at",
"ordinal": 6,
"type_info": "Datetime"
}
],
"nullable": [
false,
false,
false,
true,
true,
true,
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT d.id, d.url, d.index_status, d.name, d.favicon, d.description, d.modified_at\n FROM project_docs pd\n INNER JOIN docs d ON d.id = pd.doc_id\n WHERE project_id = $1 AND EXISTS (\n SELECT p.id\n FROM projects p\n WHERE p.id = $1 AND p.user_id = $2\n )"
},
"a8baec57552045778eb4609e83452c668583bf5a6ff8fec1898523058a061bcb": {
"describe": {
"columns": [
Expand Down Expand Up @@ -1328,60 +1382,6 @@
},
"query": "SELECT id FROM projects WHERE id = ? AND user_id = ?"
},
"d2aa09b48fdb1d608c6034758e3d43509abb7ebe114d81724409d664a46fc5df": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "url",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "index_status",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "favicon",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "description",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "modified_at",
"ordinal": 6,
"type_info": "Datetime"
}
],
"nullable": [
false,
false,
false,
true,
true,
true,
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT d.id, d.url, d.index_status, d.name, d.favicon, d.description, d.modified_at\n FROM project_docs pd\n INNER JOIN docs d ON d.id = pd.id\n WHERE project_id = $1 AND EXISTS (\n SELECT p.id\n FROM projects p\n WHERE p.id = $1 AND p.user_id = $2\n )"
},
"d2b52987aaa4bdc39c04254834c941cad2165eefd02eef46fda413822be91fd0": {
"describe": {
"columns": [
Expand Down
2 changes: 1 addition & 1 deletion server/bleep/src/webserver/project/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub async fn list(
Doc,
"SELECT d.id, d.url, d.index_status, d.name, d.favicon, d.description, d.modified_at
FROM project_docs pd
INNER JOIN docs d ON d.id = pd.id
INNER JOIN docs d ON d.id = pd.doc_id
WHERE project_id = $1 AND EXISTS (
SELECT p.id
FROM projects p
Expand Down