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

#53: improve join queue + added commands to set messages #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlphaKevin01
Copy link
Collaborator

added new commands to set the join and leave message of a queue
/admin setjoinmessage message queue
/admin setleavemessage message queue

added closing_time and acitve_coaches as parameters for the queue string

Refactorment:
Because of the circular dependency between the UserModel and SessionModel using the SessionModel in Queue was throwing an error: RefOptionIsUndefinedError: Prop-Option "ref"'s value is "null" or "undefined" for "User.sessions" [E005]

This is a known Typegoose Error which is mentioned here: https://typegoose.github.io/typegoose/docs/guides/advanced/reference-other-classes/#common-problems

I applied the recommended solution to solve this issue by providing a central models.ts file in which all models are loaded centrally. Thus all imports have to be adapted (thats why so many files have been changed : - ) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant