fix(backend): アプリ作成方式で作成したトークンの権限を表示するように (#15177)

This commit is contained in:
4ster1sk 2025-01-04 15:06:19 +09:00 committed by GitHub
parent f4e025170e
commit 020882edcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
name: token.name ?? token.app?.name, name: token.name ?? token.app?.name,
createdAt: this.idService.parse(token.id).date.toISOString(), createdAt: this.idService.parse(token.id).date.toISOString(),
lastUsedAt: token.lastUsedAt?.toISOString(), lastUsedAt: token.lastUsedAt?.toISOString(),
permission: token.permission, permission: token.app ? token.app.permission : token.permission,
}))); })));
}); });
} }