mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Fixing some newlines
Moving early return to match with the statement it is paired up with
This commit is contained in:
parent
cd42cfa546
commit
088fbf6a84
1 changed files with 1 additions and 1 deletions
|
@ -93,8 +93,8 @@ export class ApiLogins extends BaseRepository {
|
||||||
const updatedTime = moment().utc().add(LOGIN_EXPIRY_TIME, "ms");
|
const updatedTime = moment().utc().add(LOGIN_EXPIRY_TIME, "ms");
|
||||||
|
|
||||||
const login = await this.apiLogins.createQueryBuilder().where("id = :id", { id: loginId }).getOne();
|
const login = await this.apiLogins.createQueryBuilder().where("id = :id", { id: loginId }).getOne();
|
||||||
|
|
||||||
if (!login || moment.utc(login.expires_at).isSameOrAfter(updatedTime)) return;
|
if (!login || moment.utc(login.expires_at).isSameOrAfter(updatedTime)) return;
|
||||||
|
|
||||||
await this.apiLogins.update(
|
await this.apiLogins.update(
|
||||||
{ id: loginId },
|
{ id: loginId },
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue