diff --git a/scripts/newsletter.js b/scripts/newsletter.js index 9a249ac9..20a4b95f 100644 --- a/scripts/newsletter.js +++ b/scripts/newsletter.js @@ -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' }