feat(core): When processing slash command duration, cater for new ticket models

ref: #744 #728 #726 #746 #747
This commit is contained in:
2025-05-10 23:42:40 +09:30
parent 70c835eb93
commit cb49d0fbf7

View File

@ -82,7 +82,10 @@ For this command to process the following conditions must be met:
user = self.opened_by,
)
elif str(self._meta.verbose_name).lower().replace(' ', '_') == 'ticket_comment':
elif(
str(self._meta.verbose_name).lower().replace(' ', '_') == 'ticket_comment'
or str(self.__class__.__name__).lower().startswith('ticketcomment')
):
self.duration = duration