From a79c305dfbf27a20daea322e86acd78703ffe63d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 28 Mar 2020 19:44:57 +0900 Subject: [PATCH] Update gen-token.ts --- src/server/api/endpoints/miauth/gen-token.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/endpoints/miauth/gen-token.ts b/src/server/api/endpoints/miauth/gen-token.ts index 599ecf477..efa868080 100644 --- a/src/server/api/endpoints/miauth/gen-token.ts +++ b/src/server/api/endpoints/miauth/gen-token.ts @@ -42,6 +42,7 @@ export default define(meta, async (ps, user) => { await AccessTokens.save({ id: genId(), createdAt: new Date(), + lastUsedAt: new Date(), session: ps.session, userId: user.id, token: accessToken,