mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Fix reputation using wrong date
This commit is contained in:
@@ -15,7 +15,7 @@ interface ReputationDBResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getReputation(userID: UserID): Promise<number> {
|
export async function getReputation(userID: UserID): Promise<number> {
|
||||||
const weekAgo = Date.now() - 1000 * 60 * 60 * 24 * 45; // 45 days ago
|
const weekAgo = Date.now() - 1000 * 60 * 60 * 24 * 7; // 45 days ago
|
||||||
const pastDate = Date.now() - 1000 * 60 * 60 * 24 * 45; // 45 days ago
|
const pastDate = Date.now() - 1000 * 60 * 60 * 24 * 45; // 45 days ago
|
||||||
// 1596240000000 is August 1st 2020, a little after auto upvote was disabled
|
// 1596240000000 is August 1st 2020, a little after auto upvote was disabled
|
||||||
const fetchFromDB = () => db.prepare("get",
|
const fetchFromDB = () => db.prepare("get",
|
||||||
|
|||||||
Reference in New Issue
Block a user