Update updated_at field on notification read

This commit is contained in:
Roman Chvanikov 2019-04-14 22:29:05 +07:00
commit dc21181f65
2 changed files with 27 additions and 1 deletions

View file

@ -58,7 +58,10 @@ defmodule Pleroma.Notification do
where: n.user_id == ^user_id,
where: n.id <= ^id,
update: [
set: [seen: true]
set: [
seen: true,
updated_at: ^NaiveDateTime.utc_now()
]
]
)