Update new.js

This commit is contained in:
Isaac 2021-04-20 22:41:25 +01:00 committed by GitHub
parent e2fb11de4f
commit b1ff45a23e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ module.exports = class NewCommand extends Command {
let list = tickets.rows.map(row => {
if (row.topic) {
let description = row.topic.substring(0, 30);
let ellipses = description.length > 30 ? '...' : '';
let ellipses = row.topic.length > 30 ? '...' : '';
return `<#${row.id}>: \`${description}${ellipses}\``;
} else {
return `<#${row.id}>`;