From f0e50208bf61499173ce96c801fc930bcee84632 Mon Sep 17 00:00:00 2001 From: Seok93 Date: Fri, 27 Sep 2024 17:28:59 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#115=20=ED=8C=8C=EC=9D=BC=20=EC=B5=9C?= =?UTF-8?q?=EB=8C=80=20=EA=B0=9C=EC=88=98=20Validation=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/Validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Validator.ts b/src/utils/Validator.ts index 3d8b5a45..733c5ad5 100644 --- a/src/utils/Validator.ts +++ b/src/utils/Validator.ts @@ -36,7 +36,7 @@ export default class Validator { if (!Validator.isPositiveNumberWithZero(maxCount) || !Validator.isPositiveNumberWithZero(currentCount)) { throw Error('최대 파일수와 현재 파일 수는 음수가 될 수 없습니다.'); } - return maxCount >= currentCount; + return maxCount > currentCount; } public static isValidFileSize(maxSize: number, fileSize: number) {