Skip to content

Commit

Permalink
chore: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
veryCrunchy committed May 5, 2024
1 parent 9d6a051 commit 097950e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/watchtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default async () => {
thresholdDate.setMinutes(thresholdDate.getMinutes() - 5);
const TenMinutesAgo = toSQLDate(thresholdDate);

console.log(FiveMinutesAgo);
console.log(await db.select().from(watchtime));
// console.log(FiveMinutesAgo);
// console.log(await db.select().from(watchtime));
// on first watch we insert the user with a time of NULL
// if the user has been watching for more than 5 minutes, which means the updatedAt is more than 5 minutes ago we set the time +5
// if the user hasn't been updated for more than 10 minutes the user has left in between,
Expand All @@ -29,7 +29,7 @@ export default async () => {
const WHEN_FIVE_THEN = sql`WHEN ${watchtime.updatedAt} < ${FiveMinutesAgo} THEN`;
const WHEN_TEN_THEN = sql`WHEN ${watchtime.updatedAt} < ${TenMinutesAgo} THEN`;

console.log(await db.select().from(watchtime));
// console.log(await db.select().from(watchtime));

try {
const token = await getToken(streamer);
Expand Down

0 comments on commit 097950e

Please sign in to comment.