@koalarx/nest 3.1.22 → 3.1.23
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.
|
@@ -317,7 +317,7 @@ class RepositoryBase {
|
|
|
317
317
|
relationKeys.push(propName);
|
|
318
318
|
const items = [];
|
|
319
319
|
data[propName]?.forEach((item) => {
|
|
320
|
-
const cacheKey = `${entity.
|
|
320
|
+
const cacheKey = `${entity.name}-${propName}-${this.getIdOnEntity(new entityInstance(), item)}`;
|
|
321
321
|
if (cache.has(cacheKey)) {
|
|
322
322
|
items.push(Promise.resolve(cache.get(cacheKey)));
|
|
323
323
|
return;
|
|
@@ -330,7 +330,7 @@ class RepositoryBase {
|
|
|
330
330
|
}
|
|
331
331
|
const relationEntity = auto_mapping_list_1.AutoMappingList.getSourceByName(propDef?.type ?? '');
|
|
332
332
|
if (relationEntity && data[propName]) {
|
|
333
|
-
const cacheKey = `${entity.
|
|
333
|
+
const cacheKey = `${entity.name}-${propName}-${this.getIdOnEntity(new relationEntity(), data[propName])}`;
|
|
334
334
|
if (cache.has(cacheKey)) {
|
|
335
335
|
data[propName] = cache.get(cacheKey);
|
|
336
336
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalarx/nest",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Igor D. Rangel",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@nestjs/swagger": "^11.0.7",
|
|
22
22
|
"@prisma/adapter-pg": "^7.2.0",
|
|
23
23
|
"@prisma/client": "^7.2.0",
|
|
24
|
-
"@scalar/nestjs-api-reference": "^0.
|
|
24
|
+
"@scalar/nestjs-api-reference": "^1.0.24",
|
|
25
25
|
"consola": "^3.4.2",
|
|
26
26
|
"dotenv": "^16.0.3",
|
|
27
27
|
"express-basic-auth": "^1.2.1",
|