mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
Fix
This commit is contained in:
parent
c16bcbd6c5
commit
7bcaf37e78
@ -232,11 +232,12 @@ class UserStore implements IUserStore {
|
||||
}
|
||||
|
||||
async successfullyLogin(user: User): Promise<void> {
|
||||
const currentDate = new Date();
|
||||
return this.buildSelectUser(user).update({
|
||||
login_attempts: 0,
|
||||
seen_at: new Date(),
|
||||
seen_at: currentDate,
|
||||
first_seen_at: this.db.raw('COALESCE(first_seen_at, ?)', [
|
||||
new Date(),
|
||||
currentDate,
|
||||
]),
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user