Remove org owner fallback in getProfile

Removes also some getProfile functions that were only used once.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2021-11-24 16:22:21 +01:00
parent 7398fa1e87
commit 7c3cfcac28
4 changed files with 3 additions and 33 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
import Loading from '@app/Loading.svelte';
import Modal from '@app/Modal.svelte';
import Avatar from '@app/Avatar.svelte';
import { Org } from '@app/base/orgs/Org';
import { Profile, ProfileType } from '@app/profile';
import type { Info } from '@app/project';
import { formatOrg } from '@app/utils';
@@ -25,7 +24,7 @@
let projectRoot = proj.path({ urn, user, org, commit });
let getProject = new Promise<Profile | null>(resolve => {
if (org) {
Org.getProjectProfile(org, config).then(p => resolve(p));
Profile.get(org, ProfileType.Project, config).then(p => resolve(p));
} else if (user) {
Profile.get(user, ProfileType.Project, config).then(p => resolve(p));
} else {