mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Fix bug
This commit is contained in:
parent
95bf609512
commit
46e4cce6f9
1 changed files with 1 additions and 3 deletions
|
@ -42,7 +42,7 @@ export default async (req: express.Request, res: express.Response) => {
|
|||
}
|
||||
|
||||
// Append signin history
|
||||
const inserted = await Signin.insert({
|
||||
const record = await Signin.insert({
|
||||
created_at: new Date(),
|
||||
user_id: user._id,
|
||||
ip: req.ip,
|
||||
|
@ -50,8 +50,6 @@ export default async (req: express.Request, res: express.Response) => {
|
|||
success: same
|
||||
});
|
||||
|
||||
const record = inserted.ops[0];
|
||||
|
||||
// Publish signin event
|
||||
event(user._id, 'signin', await serialize(record));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue