fix: purgeCloudflareCache

regression when ConfigManager was introduced
This commit is contained in:
Bobby 2022-10-06 04:20:02 +07:00
parent 073bb0e710
commit 3d51fd2e31
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -679,8 +679,8 @@ self.purgeCloudflareCache = async (names, uploads, thumbs) => {
return [{ success: false, files: [], errors }]
}
let domain = self.conf.domain
if (!uploads) domain = self.conf.homeDomain
let domain = config.domain
if (!uploads) domain = config.homeDomain
const thumbNames = []
names = names.map(name => {