1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

Remove spammy console.log

This commit is contained in:
Cadence Ember 2020-04-07 18:33:35 +12:00
parent b22028aaa4
commit b2b84c0663
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -22,7 +22,7 @@ class Assistant {
this.lastRequest = Date.now()
return new Promise((resolve, reject) => {
request(`${this.origin}/api/user/v1/${username}`).json().then(root => {
console.log(root)
// console.log(root)
if (root.status === "ok") {
this.lastRequestStatus = constants.symbols.assistant_statuses.OK
resolve(root.data.user)
@ -31,7 +31,7 @@ class Assistant {
reject(constants.symbols.assistant_statuses.BLOCKED)
}
}).catch(error => {
console.error(error)
// console.error(error)
this.lastRequestStatus = constants.symbols.assistant_statuses.OFFLINE
reject(constants.symbols.assistant_statuses.OFFLINE)
})