Skip to content

Commit

Permalink
Merge pull request #135 from canopas/fix-published-dates
Browse files Browse the repository at this point in the history
Fix: published dates
  • Loading branch information
cp-sumi-k authored Jan 29, 2024
2 parents 182a9b8 + d7d48f5 commit ee0e37a
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 ee0e37a

Please sign in to comment.