From 10bb96dae81678c7dbb85ef33054753f448e8817 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sat, 18 Apr 2026 09:03:38 +0200 Subject: [PATCH] feat(dtos): add IsInt validation to productId in CreateInventoryDto and UpdateInventoryDto --- backend/src/inventory/dto/create-inventory.dto.ts | 1 + backend/src/inventory/dto/update-inventory.dto.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/src/inventory/dto/create-inventory.dto.ts b/backend/src/inventory/dto/create-inventory.dto.ts index dfba81b8..39251789 100644 --- a/backend/src/inventory/dto/create-inventory.dto.ts +++ b/backend/src/inventory/dto/create-inventory.dto.ts @@ -1,5 +1,6 @@ import { IsBoolean, + IsInt, IsNumber, IsOptional, IsString, diff --git a/backend/src/inventory/dto/update-inventory.dto.ts b/backend/src/inventory/dto/update-inventory.dto.ts index c971b91e..79d85039 100644 --- a/backend/src/inventory/dto/update-inventory.dto.ts +++ b/backend/src/inventory/dto/update-inventory.dto.ts @@ -1,5 +1,6 @@ import { IsBoolean, + IsInt, IsNumber, IsOptional, IsString,