Fix gallery date display (#445)

* Fix gallery date display

* Fix approved date not setting
This commit is contained in:
Geometrically
2022-09-04 13:37:11 -07:00
committed by GitHub
parent e7c3f8bf47
commit b25af641e2
4 changed files with 28 additions and 15 deletions

View File

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