Replace `each` by `forEach`

pull/5810/head
Rodrigo Nascimento 9 years ago
parent d35dada0bb
commit e92a7e3e98
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 2
      server/startup/migrations/v020.js

@ -30,7 +30,7 @@ RocketChat.Migrations.add({
return;
}
cursorFileMessages.fetch().each((msg) => {
cursorFileMessages.fetch().forEach((msg) => {
return RocketChat.models.Uploads.update({
_id: msg.file && msg.file._id
}, {

Loading…
Cancel
Save