diff --git a/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs b/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs index 33d195af..dad7d6d0 100644 --- a/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs +++ b/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs @@ -159,6 +159,20 @@ public override Task SaveItemAsync(IContent item) contentService.SaveBlueprint(item); }); + /// + /// has to save via SaveBlueprint, the inherited ContentSerializer.SaveAsync would + /// save through IContentService.Save, and that persists the item with the Document + /// node object type - so the blueprint stops being a blueprint. + /// + public override Task SaveAsync(IEnumerable items) + => uSyncTaskHelper.FromResultOf(() => + { + foreach (var item in items) + { + contentService.SaveBlueprint(item); + } + }); + public override Task DeleteItemAsync(IContent item) => uSyncTaskHelper.FromResultOf(() => {