Fix approved value setting (#415)

This commit is contained in:
Geometrically
2022-08-07 09:21:49 -07:00
committed by GitHub
parent 33988ed3fb
commit 8272386733
2 changed files with 13 additions and 13 deletions

View File

@@ -491,7 +491,7 @@ pub async fn project_edit(
sqlx::query!(
"
UPDATE mods
SET published = NOW()
SET approved = NOW()
WHERE id = $1 AND approved = NULL
",
id as database::models::ids::ProjectId,