enhancement(lint): Fix lint errors for src/modules/school.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-02-27 16:34:07 +00:00 committed by GitHub
parent 3b332c182b
commit b4407874bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,10 +179,12 @@ export async function fetchAssignments() {
export function tempcronjob(app: ModifiedApp) {
setInterval(() => {
try {
fetchHomePage().then(r=>r.json()).then(console.log)
console.log(`omg it worked`)
fetchHomePage()
.then((r) => r.json())
.then(console.log);
console.log(`omg it worked`);
} catch (e) {
console.error(e, `#pointer-at-school`)
console.error(e, `#pointer-at-school`);
}
fetchAssignments().then(async (d) => {
if (
@ -253,8 +255,7 @@ export async function fetchHomePage() {
cookie: Buffer.from(process.env.KCD_COOKIE2, "base64").toString(),
},
},
)
.then((r) => r.json())
).then((r) => r.json());
}
export async function tellMeMissing(
data: AssignmentsReqPayload,