@ -67,7 +67,7 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents
return new MongoCollectionSettings
{
ReadPreference = readPreference
}
};
protected override Task SetupCollectionAsync(IMongoCollection<MongoContentEntity> collection,
@ -96,7 +96,12 @@ namespace Squidex.Domain.Apps.Entities.Assets
if (command.Type == AssetType.Image && command.Tags != null)
if (command.Tags == null)
return;
if (command.Type == AssetType.Image)
command.Tags.Add("image");