Fix JSON by not outputting error

This commit is contained in:
2020-08-22 04:26:08 -04:00
parent 92df36760b
commit f668efb218
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
server-pages-test.csv
server-pages-*.csv
# npm {{{ -

View File

@@ -1,5 +1,6 @@
shortUrl,url,siteTitle,description,repo,repoUrl
cal.khkm.tk,https://cal.khkm.tk,"Baïkal server","CalDAV/CardDAV server.",sabre-io/Baikal,https://github.com/sabre-io/Baikal
ataraxy.tk,http://ataraxy.tk/,"Ataraxy | Call of Duty: Mobile Clan","Site for my Call of Duty: Mobile clan.",Kevin-Mok/codm.ataraxy.tk,https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk
git.kevin-mok.com,https://git.kevin-mok.com,"Kevin Mok's Gitea","Git server.",go-gitea/gitea,https://github.com/go-gitea/gitea
img.khkm.tk,https://img.khkm.tk,"Kevin's Images","Image hosting.",LycheeOrg/Lychee,https://github.com/LycheeOrg/Lychee/
kevin-mok.com,https://kevin-mok.com," Kevin Mok ","Personal site (this site).",Kevin-Mok/my-site,https://git.kevin-mok.com/Kevin-Mok/my-site
1 shortUrl url siteTitle description repo repoUrl
2 cal.khkm.tk https://cal.khkm.tk Baïkal server CalDAV/CardDAV server. sabre-io/Baikal https://github.com/sabre-io/Baikal
3 ataraxy.tk http://ataraxy.tk/ Ataraxy | Call of Duty: Mobile Clan Site for my Call of Duty: Mobile clan. Kevin-Mok/codm.ataraxy.tk https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk
4 git.kevin-mok.com https://git.kevin-mok.com Kevin Mok's Gitea Git server. go-gitea/gitea https://github.com/go-gitea/gitea
5 img.khkm.tk https://img.khkm.tk Kevin's Images Image hosting. LycheeOrg/Lychee https://github.com/LycheeOrg/Lychee/
6 kevin-mok.com https://kevin-mok.com Kevin Mok Personal site (this site). Kevin-Mok/my-site https://git.kevin-mok.com/Kevin-Mok/my-site

View File

@@ -16,10 +16,12 @@ const checkIfTitleMatches = obj => {
} else {
obj['status'] = 'down'
}
return true
// return true
},
error => { // failure handler
console.log(error)
// console.log(error)
obj['status'] = 'down'
// return false
})
}