improve newsletter import
This commit is contained in:
parent
5631d6acf6
commit
73df5e0308
|
@ -1,4 +1,5 @@
|
||||||
const { ApolloClient, InMemoryCache, HttpLink, gql } = require('@apollo/client')
|
const { ApolloClient, InMemoryCache, HttpLink, gql } = require('@apollo/client')
|
||||||
|
const { quote } = require('../lib/md.js')
|
||||||
|
|
||||||
const ITEMS = gql`
|
const ITEMS = gql`
|
||||||
query items ($sort: String, $when: String, $sub: String, $by: String) {
|
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 () {
|
async function main () {
|
||||||
const { quote } = await import('../lib/md.js')
|
|
||||||
|
|
||||||
const top = await client.query({
|
const top = await client.query({
|
||||||
query: ITEMS,
|
query: ITEMS,
|
||||||
variables: { sort: 'top', when: 'week' }
|
variables: { sort: 'top', when: 'week' }
|
||||||
|
|
Loading…
Reference in New Issue