diff --git a/src/services/identity/UsersService.ts b/src/services/identity/UsersService.ts index 3ae41b961..e06c0e1c7 100644 --- a/src/services/identity/UsersService.ts +++ b/src/services/identity/UsersService.ts @@ -81,7 +81,9 @@ class UsersService { async findSitesByUserId( isomerId: string - ): Promise { + ): Promise< + User & { site_members: Array } + > { // NOTE: The type casting is necessary to allow site_members to be // safely read return this.repository.findOne({ @@ -94,7 +96,9 @@ class UsersService { include: [{ model: Repo, required: true }], }, ], - }) as Promise + }) as Promise< + User & { site_members: Array } + > } async updateUserByGitHubId(