mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +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> {
|
async successfullyLogin(user: User): Promise<void> {
|
||||||
|
const currentDate = new Date();
|
||||||
return this.buildSelectUser(user).update({
|
return this.buildSelectUser(user).update({
|
||||||
login_attempts: 0,
|
login_attempts: 0,
|
||||||
seen_at: new Date(),
|
seen_at: currentDate,
|
||||||
first_seen_at: this.db.raw('COALESCE(first_seen_at, ?)', [
|
first_seen_at: this.db.raw('COALESCE(first_seen_at, ?)', [
|
||||||
new Date(),
|
currentDate,
|
||||||
]),
|
]),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user