Skip to content

Commit

Permalink
Update ExportPageDataCommand.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 7, 2024
1 parent 92b31e2 commit 5488d3d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Moonglade.Data/Exporting/ExportPageDataCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ public class ExportPageDataCommandHandler(MoongladeRepository<PageEntity> repo)
public Task<ExportResult> Handle(ExportPageDataCommand request, CancellationToken ct)
{
var pgExp = new ZippedJsonExporter<PageEntity>(repo, "moonglade-pages", ExportManager.DataDir);
return pgExp.ExportData(p => new
{
p.Id,
p.Title,
p.Slug,
p.MetaDescription,
p.HtmlContent,
p.CssId,
p.HideSidebar,
p.IsPublished,
p.CreateTimeUtc,
p.UpdateTimeUtc
}, ct);
return pgExp.ExportData(p => p, ct);
}
}

0 comments on commit 5488d3d

Please sign in to comment.