bot
bot copied to clipboard
[BUG] Moving a ticket into a newly created category results in an error
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Right now when I move a ticket, I get the following error message:
In the logs I see
24/03/24 22:53:18 [ERROR] (COMMANDS) f6600aede1
24/03/24 22:53:18 [ERROR] (COMMANDS) "move" command execution error: TypeError: Cannot read properties of undefined (reading 'total') at MoveSlashCommand.run (/home/container/src/commands/slash/move.js:109:4)
Expected Behavior
It should move the ticket to the right category without any errors
Steps To Reproduce
- Open a ticket
- Move the ticket
- You get the error
Environment
- OS: Ubuntu 22.04
- Node: 18.19.0
- NPM: 'Unkown command: "npm"' - So I guess none
- Bot: 4.0.13
Anything else?
No response
@nielslangerak This happens when you have just created a category. You can either
- restart or resync (type
sync
in the bot's console) - create a ticket in the new category before moving the existing ticket
The restart did it!
Reopening because it should be straightforward to make this somewhat common use work without error.