Implemented Cron - untested

This commit is contained in:
Zain 2021-10-30 22:34:41 +05:30
parent b7b1c3848f
commit 04f207db5d
No known key found for this signature in database
GPG key ID: 84AD8F072D45C37F
3 changed files with 52 additions and 3 deletions

View file

@ -27,7 +27,7 @@ export async function scoreTask(username: string, credentials: string, taskID: s
})
return(response)
}
export async function makeCronReq(username: string, credentials: string, taskID: string){
export async function makeCronReq(username: string, credentials: string){
const url = "https://habitica.com/api/v3/cron";
const response = fetch(url, {
method: 'POST',