diff --git a/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs b/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs index de63fd30..2ef1c254 100644 --- a/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs +++ b/uSync.Core/Serialization/Serializers/ContentTemplateSerializer.cs @@ -252,6 +252,21 @@ public override Task SaveItemAsync(IContent item) contentService.SaveBlueprint(item, null, Constants.Security.SuperUserId); }); + /// + /// 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) + { + foreach (var item in items) + { + contentService.SaveBlueprint(item, null, Constants.Security.SuperUserId); + } + + return Task.CompletedTask; + } + public override Task DeleteItemAsync(IContent item) => uSyncTaskHelper.FromResultOf(() => {