From 9c729759a26073c802d390a4e4d4ed543cd13368 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 8 May 2024 23:00:03 +0200 Subject: [PATCH] fix: sanitize publishedAt fields --- server/utils/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/utils/index.js b/server/utils/index.js index 4a6c6f9..b4e8e66 100644 --- a/server/utils/index.js +++ b/server/utils/index.js @@ -51,6 +51,7 @@ const sanitizeConfig = (config, relation, relationSortFields) => { delete config.id; delete config.updatedAt; delete config.createdAt; + delete config.publishedAt; if (relation) { const formattedRelations = []; @@ -59,6 +60,7 @@ const sanitizeConfig = (config, relation, relationSortFields) => { delete relationEntity._id; delete relationEntity.id; delete relationEntity.updatedAt; + delete config.publishedAt; delete relationEntity.createdAt; relationEntity = sortByKeys(relationEntity);