Patch GitHub integration organization owner

This commit is contained in:
Tuan Dang
2023-04-08 00:17:24 +03:00
parent 00b17d250e
commit a3093de55b
3 changed files with 21 additions and 16 deletions
+7 -4
View File
@@ -270,10 +270,13 @@ const getAppsGithub = async ({ accessToken }: { accessToken: string }) => {
apps = repos
.filter((a: any) => a.permissions.admin === true)
.map((a: any) => ({
name: a.name,
owner: a.owner.login,
}));
.map((a: any) => {
return ({
appId: a.id,
name: a.name,
owner: a.owner.login,
});
});
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);