allow daily discussion to appear in recent
This commit is contained in:
parent
cef122141f
commit
b68fadc63d
|
@ -120,7 +120,7 @@ export default {
|
|||
items = await models.$queryRaw(`
|
||||
${SELECT}
|
||||
FROM "Item"
|
||||
WHERE "parentId" IS NULL AND created_at <= $1 AND "pinId" IS NULL
|
||||
WHERE "parentId" IS NULL AND created_at <= $1
|
||||
${subClause(3)}
|
||||
${activeOrMine()}
|
||||
ORDER BY created_at DESC
|
||||
|
|
|
@ -183,8 +183,6 @@ export default {
|
|||
await models.user.update({ where: { id: me.id }, data: { checkedNotesAt: new Date() } })
|
||||
}
|
||||
|
||||
console.log(decodedCursor)
|
||||
|
||||
return {
|
||||
lastChecked: checkedNotesAt,
|
||||
earn,
|
||||
|
|
|
@ -113,8 +113,6 @@ function Notification ({ n }) {
|
|||
export default function Notifications ({ notifications, earn, cursor, lastChecked, variables }) {
|
||||
const { data, fetchMore } = useQuery(NOTIFICATIONS, { variables })
|
||||
|
||||
console.log(data)
|
||||
|
||||
if (data) {
|
||||
({ notifications: { notifications, earn, cursor } } = data)
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ export const ITEMS = gql`
|
|||
cursor
|
||||
items {
|
||||
...ItemFields
|
||||
position
|
||||
},
|
||||
pins {
|
||||
...ItemFields
|
||||
|
|
Loading…
Reference in New Issue