Revert "fix: don't close tickets twice"

This reverts commit a73cc2bdd4.
This commit is contained in:
Isaac 2023-02-09 16:52:29 +00:00
parent a73cc2bdd4
commit df725185eb
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -18,7 +18,7 @@ module.exports = class extends Listener {
where: { id: channel.id },
});
if (!ticket || ticket.open) return;
if (!ticket?.open) return;
await client.tickets.finallyClose(ticket.id, { reason: 'channel deleted' });
this.client.log.info(`Closed ticket ${ticket.id} because the channel was deleted`);