mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:16:30 +00:00
don't send image to the queue on editing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user