diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts index 3541b6103..38953e8ad 100644 --- a/server/models/oauth/oauth-token.ts +++ b/server/models/oauth/oauth-token.ts @@ -164,9 +164,7 @@ export class OAuthTokenModel extends Model { client: { id: token.oAuthClientId }, - user: { - id: token.userId - }, + user: token.User, token } as OAuthTokenInfo })