-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
[NEW] Integrations, both incoming and outgoing, now have access to the models. Example: Users.findOneById(id)
#6420
Conversation
I can see integrations being broke because the way we change model's functions (without any kind of control or versioning) |
I think we need to list those changes inside of the |
@graywolf336 can you fix the conflict? |
@rodrigok Done |
Are there any examples on how to access the models with outgoing and incoming webhooks? I'm trying to use this in liue of having to make rest calls to the APIs inside of web hooks. I've tried a couple ways with no luck. |
@mykiep you can use any of the models and their methods found at (except for the ones starting with an underscore: https://github.com/RocketChat/Rocket.Chat/tree/develop/packages/rocketchat-lib/server/models Thus to find a user you could do |
Users.findOneById(id)
@RocketChat/core
Closes #6336