#Ticket lock error

21 messages · Page 1 of 1 (latest)

static abyssBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

celest oyster
celest oyster
#

Please ?

storm widget
#

What happens when you click the lock/unlock buttons then? In what way aren’t they working?

celest oyster
#

I think it might be a problem when changing the value of "Locked" in the databse from false to true, but I have no clue how to fix that in the code

storm widget
#

console.log(data) in your callback before the switch there and either you see yourself where the issue is in there or show the result of the log

celest oyster
#

Btw don't hesitate to ping me when you answer so I can reply quicker

storm widget
celest oyster
storm widget
#

Is that mongoose or what library do you use for your db?

celest oyster
storm widget
#

Must be an older version then, since current versions don’t support callback like that anymore and all use promise returns instead

celest oyster
#

Could you help me solve that ?

storm widget
#

npm ls mongoose

celest oyster
storm widget
celest oyster
#

Okay sure

celest oyster