mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 09:53:00 +00:00
chore: lint
This commit is contained in:
parent
2d31c189d8
commit
d14b9af93d
1 changed files with 2 additions and 2 deletions
|
@ -36,11 +36,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
return ctrl.signal;
|
return ctrl.signal;
|
||||||
};
|
};
|
||||||
|
|
||||||
sponsors = await fetch("https://kaifa.ch/transfem-sponsors.json",{ signal: AbortSignal.timeout(2000) })
|
sponsors = await fetch("https://kaifa.ch/transfem-sponsors.json", { signal: AbortSignal.timeout(2000) })
|
||||||
.then((response) => response.json());
|
.then((response) => response.json());
|
||||||
await this.redisClient.set("sponsors", JSON.stringify(sponsors), "EX", 3600);
|
await this.redisClient.set("sponsors", JSON.stringify(sponsors), "EX", 3600);
|
||||||
}
|
}
|
||||||
return { sponsor_data: sponsors['sponsors'] };
|
return { sponsor_data: sponsors['sponsors'] };
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue