Fix merge error

This commit is contained in:
Liam 2024-07-29 16:07:08 -04:00
parent 7a9994a1e7
commit 7d432c5114

View file

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