mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Prettier
This commit is contained in:
parent
fdc8055b79
commit
d3aa671200
3 changed files with 5 additions and 7 deletions
|
|
@ -80,8 +80,7 @@ export const createPubSubClient = (): PubsubClient => {
|
|||
})
|
||||
|
||||
const cleanData = deepDelete(
|
||||
data as EntityData<T> &
|
||||
Record<(typeof fieldsToDelete)[number], unknown>,
|
||||
data as EntityData<T> & Record<typeof fieldsToDelete[number], unknown>,
|
||||
[...fieldsToDelete]
|
||||
)
|
||||
|
||||
|
|
@ -126,8 +125,7 @@ export const createPubSubClient = (): PubsubClient => {
|
|||
})
|
||||
|
||||
const cleanData = deepDelete(
|
||||
data as EntityData<T> &
|
||||
Record<(typeof fieldsToDelete)[number], unknown>,
|
||||
data as EntityData<T> & Record<typeof fieldsToDelete[number], unknown>,
|
||||
[...fieldsToDelete]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ const getPopularTopics = (
|
|||
LEFT JOIN (SELECT discover_article_id, article_save_id, article_save_url FROM omnivore.discover_feed_save_link WHERE user_id=$1 and deleted = false) su on id=su.discover_article_id
|
||||
WHERE COALESCE(sl.count / (EXTRACT(EPOCH FROM (NOW() - published_at)) / 3600 / 24), 0) > 0.0
|
||||
AND (feed_id in (SELECT feed_id FROM omnivore.discover_feed_subscription WHERE user_id = $1) OR feed_id = '${COMMUNITY_FEED_ID}') ${
|
||||
feedId != null ? `AND feed_id = $4` : ''
|
||||
}
|
||||
feedId != null ? `AND feed_id = $4` : ''
|
||||
}
|
||||
ORDER BY popularity_score DESC
|
||||
LIMIT $2 OFFSET $3
|
||||
`,
|
||||
|
|
|
|||
|
|
@ -3202,4 +3202,4 @@ const schema = gql`
|
|||
}
|
||||
`
|
||||
|
||||
export default schema
|
||||
export default schema
|
||||
|
|
|
|||
Loading…
Reference in a new issue