-
Hi guys, I'm hoping for some clarity around this error received when I attempt to add link steam profile to discord account via {prefix}profile xxx: TypeError: Cannot read properties of undefined (reading 'host') When looking at the offending line, it appears that its the Squad DB 'host' value is undefined But I have configured the host value via discord and its showing a successful connection to the DB? I'm starting to suspect it might have something to do with my node.js ver? Is running a security hole riddled 14.x node.js the only option? Server:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Gitdishit thanks for the reporting it in! However an easy fix would be replacing those lines with those As you can see the issue is clear, I had rewrite the schema of mongodb where credentials were stored before, but after the change I didn't update profile.js to use it... But once again, I wouldn't use main branch yet, since I did heavily modifie the bot in draft-1 branch. Which will be pushed to main soon... |
Beta Was this translation helpful? Give feedback.
Hey @Gitdishit thanks for the reporting it in!
I've done a huge rewrite of the entire bot/panel. Therefor I just left that little error there since I didn't want people to use this bot YET... Very bad of me not writing this in README.md :(
However an easy fix would be replacing those lines with those
As you can see the issue is clear, I had rewrite the schema of mongodb where credentials were stored before, but after the change I didn't update profile.js to use it...
But once again, I wouldn't use main branch yet, since I did heavily modifie the bot in draft-1 branch. Which will be pushed to main soon...