fix the premiumUploadSize validation to check the correct attribute

This commit is contained in:
ansuz 2020-03-23 16:13:48 -04:00
parent f3e6c6c36d
commit ee8d5c9c36
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ if (!isPositiveNumber(config.defaultStorageLimit)) {
// premiumUploadSize is worthless if it isn't a valid positive number
// or if it's less than the default upload size
if (!isPositiveNumber(config.premiumUploadSize) || config.premiumUploadSize < config.defaultStorageLimit) {
if (!isPositiveNumber(config.premiumUploadSize) || config.premiumUploadSize < config.maxUploadSize) {
delete config.premiumUploadSize;
}