reduce logs
This commit is contained in:
parent
11580eec42
commit
2e253f52bc
3 changed files with 1 additions and 3 deletions
|
@ -64,7 +64,6 @@ router.get('/', async ctx => {
|
||||||
const isAvailable = user && await apiAvailable(user.host, user.token);
|
const isAvailable = user && await apiAvailable(user.host, user.token);
|
||||||
const usersCount = await getUserCount();
|
const usersCount = await getUserCount();
|
||||||
const ranking = await getRanking(10);
|
const ranking = await getRanking(10);
|
||||||
console.log(ranking);
|
|
||||||
|
|
||||||
if (user && isAvailable) {
|
if (user && isAvailable) {
|
||||||
const meta = await api<{ version: string }>(user?.host, 'meta', {});
|
const meta = await api<{ version: string }>(user?.host, 'meta', {});
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default (): void => {
|
||||||
console.info(`${user.username}@${user.host} is deleted, so delete this user from the system`);
|
console.info(`${user.username}@${user.host} is deleted, so delete this user from the system`);
|
||||||
await deleteUser(user.username, user.host);
|
await deleteUser(user.username, user.host);
|
||||||
} else {
|
} else {
|
||||||
console.error(e);
|
console.error(`${e.name}: ${e.message}`);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (user.alertMode === 'note')
|
if (user.alertMode === 'note')
|
||||||
|
|
|
@ -23,7 +23,6 @@ mixin rankingTable()
|
||||||
-
|
-
|
||||||
let rank = 1;
|
let rank = 1;
|
||||||
let lastRating = '';
|
let lastRating = '';
|
||||||
console.log(ranking);
|
|
||||||
each rec in ranking
|
each rec in ranking
|
||||||
- const rating = rec.rating.toFixed(2);
|
- const rating = rec.rating.toFixed(2);
|
||||||
tr
|
tr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue