fix image attachment bug (#1405)
This commit is contained in:
committed by
GitHub
parent
18637ab3e1
commit
edc532c028
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user