mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +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} =
|
{merge_notification_count, nil} =
|
||||||
ImageMergeNotification
|
ImageMergeNotification
|
||||||
|> where(image_id: ^source.id)
|
|> where(target_id: ^source.id)
|
||||||
|> Repo.update_all(set: [image_id: target.id])
|
|> Repo.update_all(set: [target_id: target.id])
|
||||||
|
|
||||||
{:ok, {comment_notification_count, merge_notification_count}}
|
{:ok, {comment_notification_count, merge_notification_count}}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue