update checkedNotesAt when there are none

This commit is contained in:
keyan 2023-10-22 17:38:24 -05:00
parent 3929593d90
commit f9f13cc752
1 changed files with 3 additions and 0 deletions

View File

@ -463,6 +463,9 @@ export default {
}
}
// since they don't have notifications, we can update their checkedNotesAt
await models.user.update({ where: { id: me.id }, data: { checkedNotesAt: new Date() } })
return false
},
searchUsers: async (parent, { q, limit, similarity }, { models }) => {