mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 16:03:09 +02:00
Fix bug
This commit is contained in:
parent
2a00930150
commit
c5d5f7cef3
1 changed files with 7 additions and 5 deletions
|
@ -228,11 +228,13 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
|
||||||
// -----------------------------------------------------------
|
// -----------------------------------------------------------
|
||||||
// Post processes
|
// Post processes
|
||||||
|
|
||||||
Channel.update({ _id: channel._id }, {
|
if (channel) {
|
||||||
$inc: {
|
Channel.update({ _id: channel._id }, {
|
||||||
index: 1
|
$inc: {
|
||||||
}
|
index: 1
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
User.update({ _id: user._id }, {
|
User.update({ _id: user._id }, {
|
||||||
$set: {
|
$set: {
|
||||||
|
|
Loading…
Reference in a new issue