mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
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:
parent
3b332c182b
commit
b4407874bb
1 changed files with 6 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue