This commit is contained in:
syuilo
2018-02-02 08:21:30 +09:00
parent 9a282e37be
commit 718060dc85
61 changed files with 132 additions and 119 deletions

View File

@@ -3,7 +3,7 @@ import * as bcrypt from 'bcryptjs';
import * as speakeasy from 'speakeasy';
import { default as User, IUser } from '../models/user';
import Signin from '../models/signin';
import serialize from '../serializers/signin';
import { pack } from '../models/signin';
import event from '../event';
import signin from '../common/signin';
import config from '../../conf';
@@ -85,5 +85,5 @@ export default async (req: express.Request, res: express.Response) => {
});
// Publish signin event
event(user._id, 'signin', await serialize(record));
event(user._id, 'signin', await pack(record));
};