mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
fix: use fresh timestamp when setting cache entry
Use Date.now() after checkGitHubRemote() completes instead of the pre-captured timestamp to ensure accurate 5-minute TTL.
This commit is contained in:
@@ -161,7 +161,7 @@ async function getGitHubRemoteStatus(projectPath: string): Promise<GitHubRemoteS
|
||||
const status = await checkGitHubRemote(projectPath);
|
||||
githubRemoteCache.set(projectPath, {
|
||||
status,
|
||||
checkedAt: now,
|
||||
checkedAt: Date.now(),
|
||||
});
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user