@koalarx/nest 3.1.33 → 3.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -252,7 +252,7 @@ class RepositoryBase {
|
|
|
252
252
|
prismaSchema[key] = this.getConnectPrismaSchemaForRelation(entity[key]);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
else if (!
|
|
255
|
+
else if (!(entity[key] instanceof list_1.List)) {
|
|
256
256
|
prismaSchema[key] = entity[key];
|
|
257
257
|
}
|
|
258
258
|
});
|
|
@@ -325,7 +325,10 @@ class RepositoryBase {
|
|
|
325
325
|
getSourceByName: (sourceName) => auto_mapping_list_1.AutoMappingList.getSourceByName(sourceName),
|
|
326
326
|
getListEntityType: (sourceEntity, propName) => {
|
|
327
327
|
const list = new sourceEntity()[propName];
|
|
328
|
-
|
|
328
|
+
if (list instanceof list_1.List) {
|
|
329
|
+
return list.entityType;
|
|
330
|
+
}
|
|
331
|
+
return null;
|
|
329
332
|
},
|
|
330
333
|
getIdOnEntity: (currentEntity, value) => this.getIdOnEntity(currentEntity, value),
|
|
331
334
|
createEntity: (sourceEntity) => new sourceEntity(),
|