callbackUrlをappのレスポンスに追加 (#4686)

This commit is contained in:
rinsuki 2019-04-15 03:39:31 +09:00 committed by syuilo
parent 35c79c2f29
commit 0565454419

View file

@ -25,6 +25,7 @@ export class AppRepository extends Repository<App> {
return { return {
id: app.id, id: app.id,
name: app.name, name: app.name,
callbackUrl: app.callbackUrl,
...(opts.includeSecret ? { secret: app.secret } : {}), ...(opts.includeSecret ? { secret: app.secret } : {}),
...(me ? { ...(me ? {
isAuthorized: await AccessTokens.count({ isAuthorized: await AccessTokens.count({