From 7cc5fd2b54fed32af1814c721e31b9b673e2d305 Mon Sep 17 00:00:00 2001 From: hannathkadher Date: Tue, 11 Mar 2025 13:48:22 +0400 Subject: [PATCH] fixed empty validation --- src/space/services/space-product-allocation.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/space/services/space-product-allocation.service.ts b/src/space/services/space-product-allocation.service.ts index cda09b8..60157ba 100644 --- a/src/space/services/space-product-allocation.service.ts +++ b/src/space/services/space-product-allocation.service.ts @@ -190,6 +190,7 @@ export class SpaceProductAllocationService { queryRunner: QueryRunner, modifySubspace?: ModifySubspaceDto[], ): Promise { + if (!dtos || dtos.length === 0) return; try { await Promise.all([ this.processAddActions(