Sebastian Stehle
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs
|
|
|
@ -56,6 +56,11 @@ namespace Squidex.Domain.Apps.Entities.Contents.Text |
|
|
|
if (@event.Payload is ContentEvent contentEvent) |
|
|
|
{ |
|
|
|
var index = grainFactory.GetGrain<ITextIndexerGrain>(contentEvent.SchemaId.Id); |
|
|
|
|
|
|
|
if (index == null) |
|
|
|
{ |
|
|
|
throw new InvalidOperationException("Cannot create reference to grain."); |
|
|
|
} |
|
|
|
|
|
|
|
var id = contentEvent.ContentId; |
|
|
|
|
|
|
|
|