Skip to content

Commit

Permalink
Fix: published dates
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Jan 29, 2024
1 parent 182a9b8 commit d7d48f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/api/post/content-types/post/lifecycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
where: { id: event.result.id },
data: {
is_published: true,
published_on: new Date(),
published_on: event.params.data.publishedAt,
},
});

Expand Down

0 comments on commit d7d48f5

Please sign in to comment.