revert un-needed refactor
This commit is contained in:
parent
f9a82fc424
commit
3747708eb5
1 changed files with 1 additions and 2 deletions
|
|
@ -99,11 +99,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
const accessToken = secureRndstr(32);
|
||||
|
||||
const now = new Date();
|
||||
const accessTokenId = this.idService.gen(now.getTime());
|
||||
|
||||
// Insert access token doc
|
||||
await this.accessTokensRepository.insert({
|
||||
id: accessTokenId,
|
||||
id: this.idService.gen(now.getTime()),
|
||||
lastUsedAt: now,
|
||||
session: ps.session,
|
||||
userId: me.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue