@koalarx/nest 3.1.4 → 3.1.6
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.
|
@@ -100,7 +100,7 @@ class RepositoryBase {
|
|
|
100
100
|
relationDeletes.push({
|
|
101
101
|
modelName: (0, KlString_1.toCamelCase)(modelName),
|
|
102
102
|
entityInstance,
|
|
103
|
-
schema: {
|
|
103
|
+
schema: { id: item._id },
|
|
104
104
|
relations: [],
|
|
105
105
|
});
|
|
106
106
|
});
|
|
@@ -160,9 +160,7 @@ class RepositoryBase {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
|
-
prismaSchema[key] =
|
|
164
|
-
update: this.entityToPrisma(entity[key]),
|
|
165
|
-
};
|
|
163
|
+
prismaSchema[key] = this.getConnectPrismaSchemaForRelation(entity[key]);
|
|
166
164
|
}
|
|
167
165
|
}
|
|
168
166
|
else if (!Array.isArray(entity[key])) {
|