File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
DayInfo ,
11
11
DBIndex ,
12
12
DBMeta ,
13
+ ExpiredValue ,
13
14
File ,
14
15
FileInfo ,
15
16
Item ,
@@ -48,6 +49,7 @@ export function getHtmlFile(
48
49
export async function updateFile (
49
50
fileInfo : FileInfo ,
50
51
content : string ,
52
+ stars : Record < string , ExpiredValue > ,
51
53
) {
52
54
const file = fileInfo . filepath ;
53
55
const sourceConfig = fileInfo . sourceConfig ;
@@ -59,7 +61,7 @@ export async function updateFile(
59
61
} ) ;
60
62
61
63
// format link etc.
62
- const overviewMarkdownTree = await formatMarkdownItem ( tree , fileInfo ) ;
64
+ const overviewMarkdownTree = await formatMarkdownItem ( tree , fileInfo , stars ) ;
63
65
const overviewMarkdownContent = toMarkdown (
64
66
overviewMarkdownTree ,
65
67
{
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ export default async function (options: RunOptions) {
215
215
}
216
216
}
217
217
218
- await updateFile ( fileInfo , content ) ;
218
+ await updateFile ( fileInfo , content , dbCachedStars ) ;
219
219
await updateItems ( fileInfo , newItems , dbIndex ) ;
220
220
221
221
dbFiles [ file ] = {
You can’t perform that action at this time.
0 commit comments