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

This commit is contained in:
Geometrically authored and GitHub committed 2021-07-21 09:54:29 -07:00
1 parent b2f8bb9990
commit 4922598aee
3 files changed
+61 -37

No files matched your search

+10
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