Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
wrong url
Browse files
server.js
CHANGED
@@ -32,7 +32,7 @@ cron.schedule("0 * * * *", async () => {
|
|
32 |
});
|
33 |
|
34 |
cron.schedule("0 0 * * *", async () => {
|
35 |
-
const request = await fetch(
|
36 |
method: 'PATCH',
|
37 |
headers: {
|
38 |
'Content-Type': 'application/json',
|
|
|
32 |
});
|
33 |
|
34 |
cron.schedule("0 0 * * *", async () => {
|
35 |
+
const request = await fetch(`https://${process.env.SPACE_HOST}/api/models`, {
|
36 |
method: 'PATCH',
|
37 |
headers: {
|
38 |
'Content-Type': 'application/json',
|