Attempt to fix multipart errors (#436)

This commit is contained in:
Geometrically
2022-08-27 15:18:25 -07:00
committed by GitHub
parent 9c7b34d5e6
commit bf8ac214a1
3 changed files with 20 additions and 11 deletions

View File

@@ -116,7 +116,7 @@ pub async fn mods_get(
#[post("mod")]
pub async fn mod_create(
req: HttpRequest,
payload: Multipart,
mut payload: Multipart,
client: Data<PgPool>,
file_host: Data<Arc<dyn FileHost + Send + Sync>>,
) -> Result<HttpResponse, CreateError> {
@@ -125,7 +125,7 @@ pub async fn mod_create(
let result = project_create_inner(
req,
payload,
&mut payload,
&mut transaction,
&***file_host,
&mut uploaded_files,