@obisey/nest 0.1.38 → 0.1.39
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.
package/package.json
CHANGED
|
@@ -394,6 +394,8 @@ function BaseResolver(modelo) {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
async uno({ universo, IdEmpresa, planeta, item, cacheable, where, Clase, tipo, relacion, }, pagina = null) {
|
|
397
|
+
if (!item)
|
|
398
|
+
return null;
|
|
397
399
|
let tiempo;
|
|
398
400
|
// if (isDev) tiempo = moment();
|
|
399
401
|
try {
|
|
@@ -460,6 +462,8 @@ function BaseResolver(modelo) {
|
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
464
|
async muchos({ universo, IdEmpresa, planeta, item, cacheable, where, Clase, tipo, relacion, }, pagina = null) {
|
|
465
|
+
if (!item)
|
|
466
|
+
return [];
|
|
463
467
|
let tiempo;
|
|
464
468
|
// if (isDev) tiempo = moment();
|
|
465
469
|
try {
|