add MediaHash. Step1

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-11-17 07:46:05 +02:00
parent d355f81c63
commit fd95d2ba2c
27 changed files with 421 additions and 288 deletions
+3 -2
View File
@@ -54,6 +54,7 @@ public class FailsafeAnnotationsProducer
private async Task ProcessQueue(CancellationToken ct = default)
{
_annotationProducer = await Producer.Create(new ProducerConfig(await GetProducerQueueConfig(), Constants.MQ_ANNOTATIONS_QUEUE));
var currentUser = await _azaionApi.GetCurrentUserAsync();
while (!ct.IsCancellationRequested)
{
var sent = false;
@@ -81,7 +82,7 @@ public class FailsafeAnnotationsProducer
var appProperties = new ApplicationProperties
{
{ nameof(AnnotationStatus), record.Operation.ToString() },
{ nameof(User.Email), _azaionApi.CurrentUser.Email }
{ nameof(User.Email), currentUser.Email }
};
if (record.Operation.In(AnnotationStatus.Validated, AnnotationStatus.Deleted))
@@ -90,7 +91,7 @@ public class FailsafeAnnotationsProducer
{
AnnotationNames = record.AnnotationNames.ToArray(),
AnnotationStatus = record.Operation,
Email = _azaionApi.CurrentUser.Email,
Email = currentUser.Email,
CreatedDate = record.DateTime
})) { ApplicationProperties = appProperties };