parent
2580b0350a
commit
52b43d6a1f
@ -0,0 +1,14 @@ |
||||
RocketChat.Migrations.add({ |
||||
version: 99, |
||||
up() { |
||||
return RocketChat.models.Subscriptions.find({ lastActivity: {$exists: false} }).forEach(item => { |
||||
return RocketChat.models.Subscriptions.update({ |
||||
rid: item.rid |
||||
}, { |
||||
$set: { |
||||
lastActivity: item.ls |
||||
} |
||||
}); |
||||
}); |
||||
} |
||||
}); |
Loading…
Reference in new issue