Skip to content

Commit

Permalink
fix(backend): アプリ作成方式で作成したトークンの権限を表示するように
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Dec 26, 2024
1 parent 3c81926 commit e6a505c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/i/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
name: token.name ?? token.app?.name,
createdAt: this.idService.parse(token.id).date.toISOString(),
lastUsedAt: token.lastUsedAt?.toISOString(),
permission: token.permission,
permission: (token.appId) ? token.app?.permission : token.permission,
})));
});
}
Expand Down

0 comments on commit e6a505c

Please sign in to comment.