Fix errors
This commit is contained in:
parent
5cd1ed4326
commit
1855a6a8ea
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@ async function updateInstances(): Promise<void> {
|
|||
const response = await fetch(
|
||||
"https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/instances/instances.json"
|
||||
);
|
||||
const json: Instance[] = await response.json();
|
||||
const json = await response.json() as Instance[];
|
||||
for (const instance of json) {
|
||||
if (!instanceNames.has(instance.name)) {
|
||||
instances.push(instance as any);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue