From 7d432c51140ef72f2d356502b12a38f46a0bcf6f Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 29 Jul 2024 16:07:08 -0400 Subject: [PATCH] Fix merge error --- lib/philomena/images.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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