From 549092d9aa8cc8fdb972d11dfb49748592c8062f 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,