This commit is contained in:
syuilo 2017-11-01 04:28:53 +09:00
parent 2a00930150
commit c5d5f7cef3

View file

@ -228,11 +228,13 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
// -----------------------------------------------------------
// Post processes
if (channel) {
Channel.update({ _id: channel._id }, {
$inc: {
index: 1
}
});
}
User.update({ _id: user._id }, {
$set: {