From 913a6a2f50c3b896d34924eedeb2171697e63073 Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Sun, 11 Feb 2024 12:31:20 -0500 Subject: [PATCH] wip(back): require hero on posts and sort by created date in CMS list view --- ...ent_manager_configuration_content_types##api##post.post.json | 2 +- back/src/api/post/content-types/post/schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json b/back/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json index 3f7be3045..4b11d1098 100644 --- a/back/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json +++ b/back/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json @@ -8,7 +8,7 @@ "searchable": true, "pageSize": 100, "mainField": "title", - "defaultSortBy": "updatedAt", + "defaultSortBy": "createdAt", "defaultSortOrder": "DESC" }, "metadatas": { diff --git a/back/src/api/post/content-types/post/schema.json b/back/src/api/post/content-types/post/schema.json index 2e14ff1fa..e3a2215e8 100644 --- a/back/src/api/post/content-types/post/schema.json +++ b/back/src/api/post/content-types/post/schema.json @@ -25,7 +25,7 @@ "hero": { "type": "media", "multiple": false, - "required": false, + "required": true, "allowedTypes": [ "images" ]