Skip to content

Commit 91fd159

Browse files
authored
Merge pull request #57 from geeklearningio/feature/fix-blob-upload-condition
Fix azure store upload condition
2 parents dba0803 + cd19d2d commit 91fd159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GeekLearning.Storage.Azure/AzureStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public async ValueTask<IFileReference> SaveAsync(Stream data, IPrivateFileRefere
186186
data.Seek(0, SeekOrigin.Begin);
187187
var contentMD5 = Convert.ToBase64String(md5.ComputeHash(data));
188188
data.Seek(0, SeekOrigin.Begin);
189-
uploadBlob = (contentMD5 == blockBlob.Properties.ContentMD5);
189+
uploadBlob = (contentMD5 != blockBlob.Properties.ContentMD5);
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)