Skip to content

Commit

Permalink
Update server.history.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
btwlouis authored Oct 12, 2024
1 parent 60ce8d5 commit a3a7e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/services/server.history.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function insert(serverHistory: IServerHistory) {

export async function deleteOld(id: string) {
const currentTime = new Date().getTime();
const oneMonthAgo = currentTime - 2592000000;
const oneMonthAgo = currentTime - 1209600000;

await ServerHistory.deleteMany({ id: id, timestamp: { $lte: oneMonthAgo } });
}
Expand Down

0 comments on commit a3a7e06

Please sign in to comment.