mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
Fix bug
This commit is contained in:
parent
d6d9b04157
commit
5cd7c59f7b
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
|
||||||
|
|
||||||
|
if (channel) {
|
||||||
Channel.update({ _id: channel._id }, {
|
Channel.update({ _id: channel._id }, {
|
||||||
$inc: {
|
$inc: {
|
||||||
index: 1
|
index: 1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
User.update({ _id: user._id }, {
|
User.update({ _id: user._id }, {
|
||||||
$set: {
|
$set: {
|
||||||
|
|
Loading…
Reference in a new issue