Added all field types on pet custom object (#9248)
- Added all usable composite field types on pet custom object - Fixed missing createdBy on people and company seeds - DEFAULT_SUBDOMAIN is now used for login (could be improved for multi workspace) - Refactored ObjectMetadataStandardIdToIdMap to disambiguate from ObjectMetadataMap - Refactored seedCustomObjects
This commit is contained in:
@ -147,6 +147,21 @@ export class DomainManagerService {
|
||||
|
||||
private async getDefaultWorkspace() {
|
||||
if (!this.environmentService.get('IS_MULTIWORKSPACE_ENABLED')) {
|
||||
const defaultWorkspaceSubDomain =
|
||||
this.environmentService.get('DEFAULT_SUBDOMAIN');
|
||||
|
||||
if (isDefined(defaultWorkspaceSubDomain)) {
|
||||
const foundWorkspaceForDefaultSubDomain =
|
||||
await this.workspaceRepository.findOne({
|
||||
where: { subdomain: defaultWorkspaceSubDomain },
|
||||
relations: ['workspaceSSOIdentityProviders'],
|
||||
});
|
||||
|
||||
if (isDefined(foundWorkspaceForDefaultSubDomain)) {
|
||||
return foundWorkspaceForDefaultSubDomain;
|
||||
}
|
||||
}
|
||||
|
||||
const workspaces = await this.workspaceRepository.find({
|
||||
order: {
|
||||
createdAt: 'DESC',
|
||||
|
||||
Reference in New Issue
Block a user