Few fixes before release 1.3.0 (#13791)
This commit is contained in:
+1
@@ -6,6 +6,7 @@ export const fetchMetadataFields = (
|
||||
selector: Selectors,
|
||||
) => {
|
||||
const defaultFields = `
|
||||
id
|
||||
type
|
||||
name
|
||||
label
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import {
|
||||
type BeforeUpdateOneHook,
|
||||
type UpdateOneInputType,
|
||||
} from '@ptc-org/nestjs-query-graphql';
|
||||
import { type APP_LOCALES, SOURCE_LOCALE } from 'twenty-shared/translations';
|
||||
import { SOURCE_LOCALE, type APP_LOCALES } from 'twenty-shared/translations';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
import {
|
||||
|
||||
+6
@@ -188,6 +188,9 @@ export class FieldMetadataService extends TypeOrmQueryService<FieldMetadataEntit
|
||||
throw new FieldMetadataException(
|
||||
'Unique field cannot have a default value',
|
||||
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
|
||||
{
|
||||
userFriendlyMessage: t`Unique field cannot have a default value`,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -832,6 +835,9 @@ export class FieldMetadataService extends TypeOrmQueryService<FieldMetadataEntit
|
||||
throw new FieldMetadataException(
|
||||
'Unique field cannot have a default value',
|
||||
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
|
||||
{
|
||||
userFriendlyMessage: t`Unique field cannot have a default value`,
|
||||
},
|
||||
);
|
||||
|
||||
if (fieldMetadataInput.isUnique !== true) return;
|
||||
|
||||
@@ -34,7 +34,7 @@ export function formatData<T>(
|
||||
|
||||
if (!fieldMetadata) {
|
||||
throw new Error(
|
||||
`Field metadata for field "${key}" is missing in object metadata`,
|
||||
`Field metadata for field "${key}" is missing in object metadata ${objectMetadataItemWithFieldMaps.nameSingular}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user