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
66644612
Commit
66644612
authored
8 years ago
by
Gabriel Engel
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4122 from KirbySSmith/#4121-ModelsBase.update-throws-error
#4121 models base.update throws error
parents
bd15be00
720c9430
No related branches found
Branches containing commit
Tags
0.8.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-lib/server/models/_Base.js
+3
-3
3 additions, 3 deletions
packages/rocketchat-lib/server/models/_Base.js
with
3 additions
and
3 deletions
packages/rocketchat-lib/server/models/_Base.js
+
3
−
3
View file @
66644612
...
...
@@ -74,10 +74,10 @@ class ModelsBase extends EventEmitter {
}
}
query
=
{
_id
:
{
$in
:
_
.
pluck
(
ids
,
'
_id
'
)
}
};
const
result
=
this
.
model
.
update
(
query
,
update
,
options
);
this
.
emit
(
'
update
'
,
query
,
update
);
this
.
emit
(
'
change
'
,
'
update
'
,
query
,
update
);
const
idQuery
=
{
_id
:
{
$in
:
_
.
pluck
(
ids
,
'
_id
'
)
}
};
this
.
emit
(
'
update
'
,
idQuery
,
update
);
this
.
emit
(
'
change
'
,
'
update
'
,
idQuery
,
update
);
return
result
;
}
...
...
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