Skip to content

Commit b5434ae

Browse files
committed
expand chapter free access
1 parent b52ca8b commit b5434ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/routes/getUserInfo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ async function getPermissions(userID: HashedUserID): Promise<Record<string, bool
118118

119119
async function getFreeChaptersAccess(userID: HashedUserID): Promise<boolean> {
120120
return await oneOf([isUserVIP(userID),
121-
(async () => !!(await db.prepare("get", `SELECT "timeSubmitted" FROM "sponsorTimes" WHERE "reputation" > 0 AND "timeSubmitted" < 1663872563000 AND "userID" = ? LIMIT 1`, [userID], { useReplica: true })))(),
122-
(async () => !!(await db.prepare("get", `SELECT "timeSubmitted" FROM "sponsorTimes" WHERE "timeSubmitted" < 1590969600000 AND "userID" = ? LIMIT 1`, [userID], { useReplica: true })))()
121+
(async () => !!(await db.prepare("get", `SELECT "timeSubmitted" FROM "sponsorTimes" WHERE "timeSubmitted" < 1666126187000 AND "userID" = ? LIMIT 1`, [userID], { useReplica: true })))()
123122
]);
124123
}
125124

0 commit comments

Comments
 (0)