Skip to content

Commit

Permalink
change expiration to match server default
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Gopal committed Jun 20, 2024
1 parent e7dca4d commit c81e38a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext-src/helpers/HandleDocumentAnalyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const handleDocumentAnalyze = async (
suppressRateLimitErrors = false,
_debug?: vscode.OutputChannel,
) => {
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
const thirty_minutes = new Date();
thirty_minutes.setHours(thirty_minutes.getHours() + 0.5);

const currentWorkSpaceFolder = Util.getRootFolderName();
const editor = vscode.window.activeTextEditor;
Expand Down Expand Up @@ -196,7 +196,7 @@ export const handleDocumentAnalyze = async (
isEndorsed: problem.endorsed,
isViewed: false,
fullFilePath: currentWorkSpaceFolder,
expiration: tomorrow.toISOString(),
expiration: thirty_minutes.toISOString(),
};
results[key] = { ...analyzeMetaData };
});
Expand Down

0 comments on commit c81e38a

Please sign in to comment.