Skip to content

Commit 78d4b77

Browse files
committed
[skip ci] fix readme content
1 parent 38f1c2f commit 78d4b77

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

db.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
DayInfo,
1111
DBIndex,
1212
DBMeta,
13+
ExpiredValue,
1314
File,
1415
FileInfo,
1516
Item,
@@ -48,6 +49,7 @@ export function getHtmlFile(
4849
export async function updateFile(
4950
fileInfo: FileInfo,
5051
content: string,
52+
stars: Record<string, ExpiredValue>,
5153
) {
5254
const file = fileInfo.filepath;
5355
const sourceConfig = fileInfo.sourceConfig;
@@ -59,7 +61,7 @@ export async function updateFile(
5961
});
6062

6163
// format link etc.
62-
const overviewMarkdownTree = await formatMarkdownItem(tree, fileInfo);
64+
const overviewMarkdownTree = await formatMarkdownItem(tree, fileInfo, stars);
6365
const overviewMarkdownContent = toMarkdown(
6466
overviewMarkdownTree,
6567
{

fetch-sources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export default async function (options: RunOptions) {
215215
}
216216
}
217217

218-
await updateFile(fileInfo, content);
218+
await updateFile(fileInfo, content, dbCachedStars);
219219
await updateItems(fileInfo, newItems, dbIndex);
220220

221221
dbFiles[file] = {

0 commit comments

Comments
 (0)