mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
fix unknown decision
This commit is contained in:
parent
0be19b677b
commit
e82dfc1e88
@ -161,8 +161,8 @@ const ensembleMixedStates = async (
|
||||
r = {
|
||||
key: key,
|
||||
exist_remote: true,
|
||||
mtime_remote: backwardMapping.localMtime,
|
||||
size_remote: backwardMapping.localSize,
|
||||
mtime_remote: backwardMapping.localMtime || entry.lastModified,
|
||||
size_remote: backwardMapping.localSize || entry.size,
|
||||
remote_encrypted_key: remoteEncryptedKey,
|
||||
};
|
||||
} else {
|
||||
@ -388,6 +388,10 @@ const getOperation = (
|
||||
r.decision_branch = 11;
|
||||
}
|
||||
|
||||
if (r.decision === "unknown") {
|
||||
throw Error(`unknown decision for ${r}`);
|
||||
}
|
||||
|
||||
return r;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user