don't send image to the queue on editing

This commit is contained in:
Alex Bezdieniezhnykh
2025-05-20 12:31:18 +03:00
parent edd803c304
commit 522af51a8d
3 changed files with 8 additions and 6 deletions
+4 -1
View File
@@ -98,7 +98,10 @@ public class FailsafeAnnotationsProducer
if (annotation == null)
continue;
var image = await File.ReadAllBytesAsync(annotation.ImagePath, ct);
var image = record.Operation == AnnotationStatus.Created
? await File.ReadAllBytesAsync(annotation.ImagePath, ct)
: null;
var annMessage = new AnnotationMessage
{
Name = annotation.Name,