mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-26 09:37:28 +00:00
Remove spammy console.log
This commit is contained in:
parent
b22028aaa4
commit
b2b84c0663
@ -22,7 +22,7 @@ class Assistant {
|
|||||||
this.lastRequest = Date.now()
|
this.lastRequest = Date.now()
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
request(`${this.origin}/api/user/v1/${username}`).json().then(root => {
|
request(`${this.origin}/api/user/v1/${username}`).json().then(root => {
|
||||||
console.log(root)
|
// console.log(root)
|
||||||
if (root.status === "ok") {
|
if (root.status === "ok") {
|
||||||
this.lastRequestStatus = constants.symbols.assistant_statuses.OK
|
this.lastRequestStatus = constants.symbols.assistant_statuses.OK
|
||||||
resolve(root.data.user)
|
resolve(root.data.user)
|
||||||
@ -31,7 +31,7 @@ class Assistant {
|
|||||||
reject(constants.symbols.assistant_statuses.BLOCKED)
|
reject(constants.symbols.assistant_statuses.BLOCKED)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error(error)
|
// console.error(error)
|
||||||
this.lastRequestStatus = constants.symbols.assistant_statuses.OFFLINE
|
this.lastRequestStatus = constants.symbols.assistant_statuses.OFFLINE
|
||||||
reject(constants.symbols.assistant_statuses.OFFLINE)
|
reject(constants.symbols.assistant_statuses.OFFLINE)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user