1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-28 06:48:42 +09:00

フォローリクエスト数がおかしい場合の応急処置APIを追加

This commit is contained in:
syuilo 2019-02-18 20:52:41 +09:00
parent b07cd37a16
commit b31d1ce61d
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -0,0 +1,21 @@
import User from '../../../../models/user';
import define from '../../define';
export const meta = {
requireCredential: true,
kind: 'account-write',
params: {
}
};
export default define(meta, (ps, user) => new Promise(async (res, rej) => {
await User.update({ _id: user._id }, {
$set: {
pendingReceivedFollowRequestsCount: 0
}
});
res();
}));