From 737db2947c1062f9de988f93e56bab5a5bf25514 Mon Sep 17 00:00:00 2001 From: Niceygy Date: Thu, 13 Jun 2024 11:13:47 +0100 Subject: [PATCH] fix imports --- src/scheduled/chart.js | 2 +- src/scheduled/weeklyMessage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: {