mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 07:26:48 +00:00
fix date
This commit is contained in:
@@ -45,7 +45,7 @@ export async function getAllPosts({ notionPageData, from, pageType }) {
|
||||
// Sort by date
|
||||
if (BLOG.POSTS_SORT_BY === 'date') {
|
||||
posts.sort((a, b) => {
|
||||
return b?.sortDate - a?.sortDate
|
||||
return b?.publishDate - a?.publishDate
|
||||
})
|
||||
}
|
||||
return posts
|
||||
|
||||
Reference in New Issue
Block a user