Browse Source

fix the premiumUploadSize validation to check the correct attribute

master
ansuz 10 months ago
parent
commit
ee8d5c9c36
1 changed files with 1 additions and 1 deletions
  1. 2
      lib/load-config.js

2
lib/load-config.js

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

Loading…
Cancel
Save