Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Improve reducer merged profiles
Browse files Browse the repository at this point in the history
The first platforms id is not 1 every time. Now the first entry
of the list is selected. objects.all() is ok regarding performance
cause a length over 5 is unrealistic.
  • Loading branch information
schettn committed Oct 28, 2020
1 parent 32b3413 commit b052cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducer/helper/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface IOrganization extends models.Organization {
* information.
*/
async function mergedProfile() {
let platform = models.Platform.objects.get({ id: 1 }) as IPlatform;
let platform = models.Platform.objects.all()[0] as IPlatform;
let repositories = models.Repository.objects.all() as IRepository[];
let organizations = models.Organization.objects.all() as IOrganization[];

Expand Down

0 comments on commit b052cfa

Please sign in to comment.