upload picture now working well
This commit is contained in:
@@ -526,7 +526,7 @@ async fn update(
|
||||
|
||||
if let Some(data) = form.image {
|
||||
let filename = store_image(&ctx, data).await?;
|
||||
let next_position = product_images::count_for(&ctx, id).await?;
|
||||
let next_position = product_images::count_for(&txn, id).await?;
|
||||
product_images::ActiveModel {
|
||||
product_id: Set(id),
|
||||
image_id: Set(filename),
|
||||
|
||||
Reference in New Issue
Block a user