mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
add MediaHash. Step1
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user