Skip to content

Commit 7b2532a

Browse files
committed
fix(view): update knowledge base last refresh timestamp on initial download
1 parent 6d0c6ca commit 7b2532a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/tldr.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ async function download(): Promise<void> {
4141
await fs.mkdir(TLDR_PATH, {recursive: true});
4242

4343
await execa('git', ['clone', 'https://github.com/tldr-pages/tldr.git', TLDR_PATH]);
44+
45+
options.lastRefresh = Date.now();
46+
47+
await flushOptions(options);
4448
}
4549

4650
export async function refresh(): Promise<void> {

0 commit comments

Comments
 (0)