|
|
@ -38,14 +38,14 @@ namespace Squidex.Domain.Apps.Core.HandleRules.Actions |
|
|
var ruleData = new RuleJobData |
|
|
var ruleData = new RuleJobData |
|
|
{ |
|
|
{ |
|
|
["AppId"] = action.AppId, |
|
|
["AppId"] = action.AppId, |
|
|
["ApiKey"] = action.ApiKey, |
|
|
["ApiKey"] = action.ApiKey |
|
|
["IndexName"] = action.IndexName |
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (@event.Payload is ContentEvent contentEvent) |
|
|
if (@event.Payload is ContentEvent contentEvent) |
|
|
{ |
|
|
{ |
|
|
ruleData["ContentId"] = contentEvent.ContentId.ToString(); |
|
|
ruleData["ContentId"] = contentEvent.ContentId.ToString(); |
|
|
ruleData["Operation"] = "Upsert"; |
|
|
ruleData["Operation"] = "Upsert"; |
|
|
|
|
|
ruleData["IndexName"] = action.IndexName.Replace("$SCHEMA_NAME", contentEvent.SchemaId.Name); |
|
|
|
|
|
|
|
|
var timestamp = @event.Headers.Timestamp().ToString(); |
|
|
var timestamp = @event.Headers.Timestamp().ToString(); |
|
|
|
|
|
|
|
|
|