refactor: clean up github and rewrite its auth

This commit is contained in:
Ali BARIN
2022-10-16 19:49:45 +02:00
parent a69cd51dda
commit 314787f39c
37 changed files with 398 additions and 1756 deletions

View File

@@ -34,10 +34,10 @@ const getConnectedApps = async (
const usedApps = [...new Set([...duplicatedUsedApps, ...connectionKeys])];
apps = apps
.filter((app: IApp) => {
.filter((app) => {
return usedApps.includes(app.key);
})
.map((app: IApp) => {
.map((app) => {
const connection = connections.find(
(connection) => (connection as IConnection).key === app.key
);
@@ -54,7 +54,8 @@ const getConnectedApps = async (
});
return app;
});
})
.sort((appA, appB) => appA.name.localeCompare(appB.name));
return apps;
};