Public Webhook Fixes (#493)

* Public discord webhook

* Switch to jsonb for most queries + make gallery featured first

* Run fmt + clippy + prepare
This commit is contained in:
Geometrically
2022-12-07 09:56:53 -07:00
committed by GitHub
parent e809f77461
commit 4da1871567
10 changed files with 1456 additions and 1666 deletions

View File

@@ -277,7 +277,7 @@ pub async fn project_create(
&***file_host,
&flame_anvil_queue,
&mut uploaded_files,
&*client,
&client,
)
.await;
@@ -723,7 +723,6 @@ pub async fn project_create_inner(
})?;
donation_urls.push(models::project_item::DonationUrl {
project_id: project_id.into(),
platform_id,
platform_short: "".to_string(),
platform_name: "".to_string(),
@@ -759,7 +758,6 @@ pub async fn project_create_inner(
gallery_items: gallery_urls
.iter()
.map(|x| models::project_item::GalleryItem {
project_id: project_id.into(),
image_url: x.url.clone(),
featured: x.featured,
title: x.title.clone(),