Add gallery item deletion + making them optional (#224)

This commit is contained in:
Geometrically
2021-07-21 09:54:29 -07:00
committed by GitHub
parent b2f8bb9990
commit 4922598aee
3 changed files with 61 additions and 37 deletions

View File

@@ -370,6 +370,16 @@ impl Project {
.execute(&mut *transaction)
.await?;
sqlx::query!(
"
DELETE FROM mods_gallery
WHERE mod_id = $1
",
id as ProjectId
)
.execute(&mut *transaction)
.await?;
sqlx::query!(
"
DELETE FROM mod_follows