mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
Fix imports triggering verification when below threshold
no issue Swapped the variable names for importSize and importThreshold
This commit is contained in:
parent
77f2acaf65
commit
c3eb3cd567
@ -60,7 +60,7 @@ const processImport = async (options) => {
|
|||||||
delete result.meta.originalImportSize;
|
delete result.meta.originalImportSize;
|
||||||
|
|
||||||
const importThreshold = await verificationTrigger.getImportThreshold();
|
const importThreshold = await verificationTrigger.getImportThreshold();
|
||||||
if (importThreshold > importSize) {
|
if (importSize > importThreshold) {
|
||||||
await verificationTrigger.startVerificationProcess({
|
await verificationTrigger.startVerificationProcess({
|
||||||
amountImported: importSize,
|
amountImported: importSize,
|
||||||
throwOnTrigger: true
|
throwOnTrigger: true
|
||||||
|
Loading…
Reference in New Issue
Block a user