@reldens/storage 0.41.0 → 0.42.0
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.
|
@@ -50,9 +50,10 @@ class PrismaDataServer extends BaseDataServer
|
|
|
50
50
|
this.entities = {};
|
|
51
51
|
for(let i of Object.keys(this.rawEntities)){
|
|
52
52
|
let rawEntity = this.rawEntities[i];
|
|
53
|
-
let
|
|
53
|
+
let tableName = rawEntity.tableName.toString();
|
|
54
|
+
let prismaModel = this.prisma[tableName];
|
|
54
55
|
if(!prismaModel){
|
|
55
|
-
Logger.critical('Invalid raw entity "'+i+'". No matching Prisma model found.');
|
|
56
|
+
Logger.critical('Invalid raw entity "'+i+'". No matching Prisma model found for "'+tableName+'".');
|
|
56
57
|
continue;
|
|
57
58
|
}
|
|
58
59
|
this.entities[i] = new PrismaDriver({
|