mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Fix bug
This commit is contained in:
parent
2a00930150
commit
c5d5f7cef3
@ -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 New Issue
Block a user