diff --git a/lib/philomena/images.ex b/lib/philomena/images.ex index 3aefa4c2..92c02155 100644 --- a/lib/philomena/images.ex +++ b/lib/philomena/images.ex @@ -912,8 +912,8 @@ defmodule Philomena.Images do {merge_notification_count, nil} = ImageMergeNotification - |> where(image_id: ^source.id) - |> Repo.update_all(set: [image_id: target.id]) + |> where(target_id: ^source.id) + |> Repo.update_all(set: [target_id: target.id]) {:ok, {comment_notification_count, merge_notification_count}} end