improve newsletter import

This commit is contained in:
k00b 2024-11-16 16:52:08 -06:00
parent 5631d6acf6
commit 73df5e0308
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,5 @@
const { ApolloClient, InMemoryCache, HttpLink, gql } = require('@apollo/client')
const { quote } = require('../lib/md.js')
const ITEMS = gql`
query items ($sort: String, $when: String, $sub: String, $by: String) {
@ -143,8 +144,6 @@ async function getTopUsers ({ by, cowboys = false, includeHidden = false, count
}
async function main () {
const { quote } = await import('../lib/md.js')
const top = await client.query({
query: ITEMS,
variables: { sort: 'top', when: 'week' }