upload picture now working well

This commit is contained in:
Priec
2026-06-22 16:56:14 +02:00
parent 681c88f85d
commit f724e9763f
2 changed files with 7 additions and 3 deletions

View File

@@ -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),