Show logs in reverse order again

master
Dragory 2018-02-18 19:43:32 +02:00
parent 32c22f4d46
commit ce8624e130
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,8 @@ addInboxServerCommand('unblock', (msg, args, thread) => {
addInboxServerCommand('logs', (msg, args, thread) => {
async function getLogs(userId) {
const userThreads = await threads.getClosedThreadsByUserId(userId);
userThreads.reverse();
const threadLines = await Promise.all(userThreads.map(async thread => {
const logUrl = await thread.getLogUrl();
const formattedDate = moment.utc(thread.created_at).format('MMM Do [at] HH:mm [UTC]');