Fix bug
This commit is contained in:
@ -7,6 +7,7 @@ import generateUserToken from '../common/generate-native-user-token';
|
||||
import config from '../../../config';
|
||||
import Meta from '../../../models/meta';
|
||||
import RegistrationTicket from '../../../models/registration-tickets';
|
||||
import { updateUserStats } from '../../../services/update-chart';
|
||||
|
||||
if (config.recaptcha) {
|
||||
recaptcha.init({
|
||||
@ -129,6 +130,8 @@ export default async (ctx: Koa.Context) => {
|
||||
}, { upsert: true });
|
||||
//#endregion
|
||||
|
||||
updateUserStats(account, true);
|
||||
|
||||
// Response
|
||||
ctx.body = await pack(account);
|
||||
};
|
||||
|
Reference in New Issue
Block a user