Update updated_at field on notification read
This commit is contained in:
parent
0cd4b6024d
commit
dc21181f65
2 changed files with 27 additions and 1 deletions
|
|
@ -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()
|
||||
]
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue