From e1d9fc1e9c4252c3be9a185ce7933aa13fd9f7d2 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Fri, 11 Mar 2022 09:11:50 +0800 Subject: [PATCH] fix sync delete --- src/sync.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync.ts b/src/sync.ts index 669b952..11fc443 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -976,7 +976,9 @@ export const doActualSync = async ( const val = mixedStates[key]; if ( val.decision === "uploadLocalDelHistToRemoteFolder" || - val.decision === "keepRemoteDelHistFolder" + val.decision === "keepRemoteDelHistFolder" || + val.decision === "uploadLocalDelHistToRemote" || + val.decision === "keepRemoteDelHist" ) { log.debug(`start syncing "${key}" with plan ${JSON.stringify(val)}`); @@ -1011,8 +1013,6 @@ export const doActualSync = async ( const val = mixedStates[key]; if ( val.decision === "skipUploading" || - val.decision === "uploadLocalDelHistToRemote" || - val.decision === "keepRemoteDelHist" || val.decision === "uploadLocalToRemote" || val.decision === "downloadRemoteToLocal" ) {