Properly propagate 204 to fetchManifest

This commit is contained in:
Fedor Indutny 2022-01-31 11:58:20 -08:00 committed by GitHub
parent c857250b12
commit b6287f4839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 7 deletions

View file

@ -423,7 +423,12 @@ function doRecordsConflict(
// If both types are Long we can use Long's equals to compare them
if (Long.isLong(localValue) || typeof localValue === 'number') {
if (!Long.isLong(remoteValue) || typeof remoteValue !== 'number') {
if (!Long.isLong(remoteValue) && typeof remoteValue !== 'number') {
log.info(
'storageService.doRecordsConflict: Conflict found, remote value ' +
'is not a number',
key
);
return true;
}