A decentralized music tracking and discovery platform built on AT Protocol 🎵
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update session expiration check from one hour to one day

+2 -2
+2 -2
apps/api/src/db.ts
··· 133 133 db: Database, 134 134 ctx: Context 135 135 ) => { 136 - const inOneHour = new Date(Date.now() + 60 * 60 * 1000).toISOString(); 136 + const inOneDay = new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(); 137 137 const now = new Date().toISOString(); 138 138 139 139 const sessions = await db ··· 141 141 .selectAll() 142 142 .where("expiresAt", "is not", "NULL") 143 143 .where("expiresAt", ">", now) 144 - .where("expiresAt", "<=", inOneHour) 144 + .where("expiresAt", "<=", inOneDay) 145 145 .orderBy("expiresAt", "asc") 146 146 .execute(); 147 147