diff --git a/src/scheduled/chart.js b/src/scheduled/chart.js index b1488bf..9b79e5a 100644 --- a/src/scheduled/chart.js +++ b/src/scheduled/chart.js @@ -1,4 +1,4 @@ -import sendMessageToDiscord from "./weeklyMessage.js"; +import { sendMessageToDiscord } from "./weeklyMessage.js"; /** * Creates a chart of the hightest 5 repos and sends it to the discord channel. diff --git a/src/scheduled/weeklyMessage.js b/src/scheduled/weeklyMessage.js index c702323..5ae848b 100644 --- a/src/scheduled/weeklyMessage.js +++ b/src/scheduled/weeklyMessage.js @@ -1,4 +1,4 @@ -import { chart } from "./scheduled/chart"; +import { chart } from "./chart"; /** * Sends the weekly totals to a discord channel. @@ -86,7 +86,7 @@ export async function cron(env) { * @param {object} env The ENV object. * @returns */ -async function sendMessageToDiscord(message, env) { +export async function sendMessageToDiscord(message, env) { await fetch(env.url, { method: 'POST', headers: {