Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
d088d1a7
Unverified
Commit
d088d1a7
authored
7 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
Add method back after removal by JS conversion
parent
00dbd3d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-lib/server/models/Subscriptions.js
+11
-0
11 additions, 0 deletions
packages/rocketchat-lib/server/models/Subscriptions.js
with
11 additions
and
0 deletions
packages/rocketchat-lib/server/models/Subscriptions.js
+
11
−
0
View file @
d088d1a7
...
@@ -157,6 +157,17 @@ class ModelSubscriptions extends RocketChat.models._Base {
...
@@ -157,6 +157,17 @@ class ModelSubscriptions extends RocketChat.models._Base {
return
this
.
find
(
query
);
return
this
.
find
(
query
);
}
}
findUnreadByUserId
(
userId
)
{
const
query
=
{
'
u._id
'
:
userId
,
unread
:
{
$gt
:
0
}
};
return
this
.
find
(
query
,
{
fields
:
{
unread
:
1
}
});
}
// UPDATE
// UPDATE
archiveByRoomId
(
roomId
)
{
archiveByRoomId
(
roomId
)
{
const
query
=
const
query
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment