fix image attachment bug (#1405)

This commit is contained in:
Gabriel Gordon-Hall
2025-12-02 16:03:59 +00:00
committed by GitHub
parent 18637ab3e1
commit edc532c028
2 changed files with 1 additions and 31 deletions

View File

@@ -151,7 +151,7 @@ pub async fn create_task_and_start(
let task = Task::create(&deployment.db().pool, &payload.task, task_id).await?;
if let Some(image_ids) = &payload.task.image_ids {
TaskImage::associate_many(&deployment.db().pool, task.id, image_ids).await?;
TaskImage::associate_many_dedup(&deployment.db().pool, task.id, image_ids).await?;
}
deployment