Browse Source

Build fix.

pull/728/head
Sebastian 5 years ago
parent
commit
3b3d50b554
  1. 2
      backend/src/Squidex.Domain.Apps.Entities.MongoDb/Contents/MongoContentCollection.cs
  2. 7
      backend/src/Squidex.Domain.Apps.Entities/Assets/ImageAssetMetadataSource.cs

2
backend/src/Squidex.Domain.Apps.Entities.MongoDb/Contents/MongoContentCollection.cs

@ -67,7 +67,7 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents
return new MongoCollectionSettings return new MongoCollectionSettings
{ {
ReadPreference = readPreference ReadPreference = readPreference
} };
} }
protected override Task SetupCollectionAsync(IMongoCollection<MongoContentEntity> collection, protected override Task SetupCollectionAsync(IMongoCollection<MongoContentEntity> collection,

7
backend/src/Squidex.Domain.Apps.Entities/Assets/ImageAssetMetadataSource.cs

@ -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"); command.Tags.Add("image");

Loading…
Cancel
Save