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:
Lucas Bordeau
2024-12-27 15:01:09 +01:00
committed by GitHub
parent 58c92e036b
commit a8bb3e6bdf
27 changed files with 742 additions and 5428 deletions

View File

@ -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',