[CORL-1090] Sections Alpha (#2973)

* feat: added section filtering support

* fix: addressed issues around filtering sections

* fix: fixed issue with section filter
This commit is contained in:
Wyatt Johnson
2020-06-04 13:32:04 +02:00
committed by GitHub
parent 92c72f7041
commit ba08447d5e
54 changed files with 944 additions and 135 deletions
+2
View File
@@ -222,6 +222,8 @@ export default async function create(
{
...input,
siteID: story.siteID,
// Copy the current story section into the comment if it exists.
section: story.metadata?.section,
// Remap the tags to include the createdAt.
tags: tags.map((tag) => ({ type: tag, createdAt: now })),
body,