Skip to content

Commit

Permalink
fix: sanitize publishedAt fields
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed May 8, 2024
1 parent 943b83b commit 9c72975
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand All @@ -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);

Expand Down

0 comments on commit 9c72975

Please sign in to comment.