fix(core): Assign credential ownership correctly in source control import (#8955)

This commit is contained in:
Iván Ovejero
2024-03-26 17:18:41 +01:00
committed by GitHub
parent 160dfd383d
commit 260bc07ca9
7 changed files with 202 additions and 22 deletions

View File

@@ -137,3 +137,7 @@ export const getLdapIdentities = async () =>
where: { providerType: 'ldap' },
relations: ['user'],
});
export async function getGlobalOwner() {
return await Container.get(UserRepository).findOneByOrFail({ role: 'global:owner' });
}