mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Fix merge error
This commit is contained in:
parent
7a9994a1e7
commit
7d432c5114
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue