aestriex
DIAdiscord.js - Imagine an app
•Created by aestriex on 9/22/2024 in #djs-questions
Validation Error in Mongoose/djs
Okay, thanks!
7 replies
DIAdiscord.js - Imagine an app
•Created by aestriex on 9/22/2024 in #djs-questions
Validation Error in Mongoose/djs
I updated target to be a User like you said
7 replies
DIAdiscord.js - Imagine an app
•Created by aestriex on 9/22/2024 in #djs-questions
Validation Error in Mongoose/djs
It's returning a full output of what it seems like is the entire schema... but when I do the following to cover everything it could output:
It just doesn't respond at all, no error output either, I'm not sure why
7 replies
DIAdiscord.js - Imagine an app
•Created by aestriex on 9/22/2024 in #djs-questions
Validation Error in Mongoose/djs
I made it so the code does add moderators (username, user_id, type) to a database, but I can't seem to get validation checks to work to make sure people don't add a user id multiple times. I am using mongoose for schemas, and made user_id unique, so while the system won't add a user document multiple times, the discord output isn't working still.
7 replies