Ref-count Redis pool internals, fix project creation slug/ID collision (#5302)

* Ref-count Redis pool internals, fix project creation slug/ID collision

* cargo sqlx prepare
This commit is contained in:
aecsocket
2026-02-05 05:18:33 +00:00
committed by GitHub
parent 9105a68923
commit b1954be2c7
5 changed files with 16 additions and 32 deletions

View File

@@ -497,7 +497,12 @@ async fn project_create_inner(
{
let results = sqlx::query!(
"
SELECT EXISTS(SELECT 1 FROM mods WHERE slug = LOWER($1))
SELECT EXISTS(
SELECT 1 FROM mods
WHERE
slug = LOWER($1)
OR text_id_lower = LOWER($1)
)
",
create_data.slug
)