Add project check route (#384)

* Add project check route

* Fix responsee
This commit is contained in:
Geometrically
2022-06-28 14:36:47 -07:00
committed by GitHub
parent 4e97a3b3d5
commit 1fc579e907
4 changed files with 2294 additions and 2195 deletions

View File

@@ -498,9 +498,9 @@ impl Project {
{
let id = sqlx::query!(
"
SELECT id FROM mods
WHERE LOWER(slug) = LOWER($1)
",
SELECT id FROM mods
WHERE LOWER(slug) = LOWER($1)
",
slug
)
.fetch_optional(executor)
@@ -522,9 +522,9 @@ impl Project {
{
let id = sqlx::query!(
"
SELECT id FROM mods
WHERE LOWER(slug) = LOWER($1)
",
SELECT id FROM mods
WHERE LOWER(slug) = LOWER($1)
",
slug
)
.fetch_optional(executor)