fix instance code
This commit is contained in:
@@ -118,7 +118,7 @@ async function updateInstances(): Promise<void> {
|
|||||||
const existingInstance = instanceNames.get(instance.name);
|
const existingInstance = instanceNames.get(instance.name);
|
||||||
if (existingInstance) {
|
if (existingInstance) {
|
||||||
for (const key of Object.keys(instance)) {
|
for (const key of Object.keys(instance)) {
|
||||||
if (!existingInstance[key]) {
|
if (!(key in existingInstance)) {
|
||||||
existingInstance[key] = instance[key];
|
existingInstance[key] = instance[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
"name": "Spacebar",
|
"name": "Spacebar",
|
||||||
"description": "The official Spacebar instance.",
|
"description": "The official Spacebar instance.",
|
||||||
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
|
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
|
||||||
"urls":{
|
"urls": {
|
||||||
"wellknown": "https://spacebar.chat/",
|
"wellknown": "https://spacebar.chat/",
|
||||||
"api": "https://old.server.spacebar.chat/api",
|
"api": "https://old.server.spacebar.chat/api",
|
||||||
"cdn": "https://cdn.old.server.spacebar.chat",
|
"cdn": "https://cdn.old.server.spacebar.chat",
|
||||||
|
Reference in New Issue
Block a user