@reldens/storage 0.39.0 → 0.40.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,8 +50,7 @@ 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
|
-
|
|
54
|
-
if(!this.prisma[modelName]){
|
|
53
|
+
if(!this.prisma[i]){
|
|
55
54
|
Logger.critical('Invalid raw entity "'+i+'". No matching Prisma model found.');
|
|
56
55
|
continue;
|
|
57
56
|
}
|
|
@@ -61,7 +60,7 @@ class PrismaDataServer extends BaseDataServer
|
|
|
61
60
|
name: i,
|
|
62
61
|
config: this.config,
|
|
63
62
|
prisma: this.prisma,
|
|
64
|
-
model: this.prisma[
|
|
63
|
+
model: this.prisma[i],
|
|
65
64
|
server: this
|
|
66
65
|
});
|
|
67
66
|
}
|