Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Moving a ticket into a newly created category results in an error #531

Open
1 task done
nielslangerak opened this issue Mar 24, 2024 · 3 comments
Open
1 task done
Labels
bug Something isn't working
Milestone

Comments

@nielslangerak
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Right now when I move a ticket, I get the following error message:
image

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

  1. Open a ticket
  2. Move the ticket
  3. 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 nielslangerak added the bug Something isn't working label Mar 24, 2024
@eartharoid
Copy link
Member

@nielslangerak This happens when you have just created a category.
You can either

  1. restart or resync (type sync in the bot's console)
  2. create a ticket in the new category before moving the existing ticket

@nielslangerak
Copy link
Author

The restart did it!

@github-project-automation github-project-automation bot moved this from Todo to Complete in Discord Tickets Bot Mar 25, 2024
@eartharoid
Copy link
Member

Reopening because it should be straightforward to make this somewhat common use work without error.

@eartharoid eartharoid reopened this Mar 26, 2024
@eartharoid eartharoid moved this from Complete to Todo in Discord Tickets Bot Mar 26, 2024
@eartharoid eartharoid added this to the v4.1 milestone Mar 26, 2024
@eartharoid eartharoid changed the title [BUG] Error when moving ticket [BUG] Moving a ticket into a newly created category results in an error Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants