This commit is contained in:
syuilo
2018-07-30 07:20:27 +09:00
parent 4e6dcd16ac
commit 83d9730d93
33 changed files with 189 additions and 242 deletions

View File

@@ -3,7 +3,7 @@ import * as bcrypt from 'bcryptjs';
import * as speakeasy from 'speakeasy';
import User, { ILocalUser } from '../../../models/user';
import Signin, { pack } from '../../../models/signin';
import event from '../../../stream';
import { publishUserStream } from '../../../stream';
import signin from '../common/signin';
import config from '../../../config';
@@ -86,5 +86,5 @@ export default async (ctx: Koa.Context) => {
});
// Publish signin event
event(user._id, 'signin', await pack(record));
publishUserStream(user._id, 'signin', await pack(record));
};