Show logs in reverse order again
parent
32c22f4d46
commit
ce8624e130
|
@ -203,6 +203,8 @@ addInboxServerCommand('unblock', (msg, args, thread) => {
|
||||||
addInboxServerCommand('logs', (msg, args, thread) => {
|
addInboxServerCommand('logs', (msg, args, thread) => {
|
||||||
async function getLogs(userId) {
|
async function getLogs(userId) {
|
||||||
const userThreads = await threads.getClosedThreadsByUserId(userId);
|
const userThreads = await threads.getClosedThreadsByUserId(userId);
|
||||||
|
userThreads.reverse();
|
||||||
|
|
||||||
const threadLines = await Promise.all(userThreads.map(async thread => {
|
const threadLines = await Promise.all(userThreads.map(async thread => {
|
||||||
const logUrl = await thread.getLogUrl();
|
const logUrl = await thread.getLogUrl();
|
||||||
const formattedDate = moment.utc(thread.created_at).format('MMM Do [at] HH:mm [UTC]');
|
const formattedDate = moment.utc(thread.created_at).format('MMM Do [at] HH:mm [UTC]');
|
||||||
|
|
Loading…
Reference in New Issue