Fix check identical nameSingular/namePlural (#2689)

This commit is contained in:
Weiko
2023-11-24 11:30:22 +01:00
committed by GitHub
parent cc526517b3
commit 323c69948c

View File

@ -54,9 +54,9 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
record.workspaceId,
);
if (record.labelSingular === record.labelPlural) {
if (record.nameSingular.toLowerCase() === record.namePlural.toLowerCase()) {
throw new Error(
'The singular and plural labels cannot be the same for an object',
'The singular and plural name cannot be the same for an object',
);
}