From dda5f6559de331e624824647e01314ea00ee07d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 10 Apr 2019 18:10:09 +0900 Subject: [PATCH] Fix bug --- src/models/repositories/user.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 9e11b2aa8..3d2a0f31f 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -154,6 +154,12 @@ export class UserRepository extends Repository { }), } : {}), + ...(opts.includeSecrets ? { + clientData: profile.clientData, + email: profile.email, + emailVerified: profile.emailVerified, + } : {}), + ...(relation ? { isFollowing: relation.isFollowing, isFollowed: relation.isFollowed,