mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
fix(blog): correct import placement and add missing parsePublishTimePt import
This commit is contained in:
parent
616a7ed6c6
commit
7170595893
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import matter from "gray-matter"
|
|||
import { ZodError } from "zod"
|
||||
import type { BlogPost } from "./types"
|
||||
import { blogFrontmatterSchema } from "./types"
|
||||
import { getNowPt } from "./pt-time"
|
||||
import { getNowPt, parsePublishTimePt } from "./pt-time"
|
||||
import { isPublished } from "./publishing"
|
||||
|
||||
/**
|
||||
|
|
@ -158,7 +158,7 @@ export function getAllBlogPosts(options: GetAllBlogPostsOptions = {}): BlogPost[
|
|||
return dateCompare
|
||||
}
|
||||
// Same date - compare times (descending)
|
||||
import { getNowPt, parsePublishTimePt } from "./pt-time"
|
||||
return parsePublishTimePt(b.publish_time_pt) - parsePublishTimePt(a.publish_time_pt)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue