Skip to content

Commit

Permalink
removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelpapineau committed Nov 24, 2023
1 parent b023f2c commit 3c52f75
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/recentMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export function recentMessages(db: any, traceId: string, timestamp: string, chai

if (dbLength >= RECENT_MESSAGES_LIMIT) {
let oldest = sqlite.selectAll(db, "recentMessages").sort((a: any, b: any) => a.timestamp - b.timestamp)[0];
console.log("oldest", oldest)

//update recentMessages
sqlite.replaceRecent(db, "recentMessages", String(Date.now()), `${traceId}`, timestamp);
Expand All @@ -16,7 +15,6 @@ export function recentMessages(db: any, traceId: string, timestamp: string, chai
//update recentMessagesByChain
if (chain) {
oldest = sqlite.selectAll(db, "recentMessagesByChain").sort((a: any, b: any) => a.timestamp - b.timestamp)[0];
console.log(oldest)
sqlite.replaceRecent(db, "recentMessagesByChain", String(Date.now()), `${chain}:${traceId}`, timestamp );
sqlite.deleteRow(db, "recentMessagesByChain", `${oldest.key}`);
}
Expand Down

0 comments on commit 3c52f75

Please sign in to comment.