Skip to content

Commit

Permalink
Fix: #115 파일 최대 개수 Validation 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Sep 27, 2024
1 parent f0e5020 commit 5a4d769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5a4d769

Please sign in to comment.