From 5f80562772332ff87e5c3ff7b3e4f7a74ba677ef Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 28 Jun 2023 22:12:32 -0400 Subject: [PATCH] Make dearrow verification easier to get --- src/routes/postBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postBranding.ts b/src/routes/postBranding.ts index d3856b6..c00c652 100644 --- a/src/routes/postBranding.ts +++ b/src/routes/postBranding.ts @@ -149,7 +149,7 @@ async function getVerificationValue(hashedUserID: HashedUserID, isVip: boolean): const voteSum = await db.prepare("get", `SELECT SUM("titleVotes"."votes") as "voteSum" FROM "titles" JOIN "titleVotes" ON "titles"."UUID" = "titleVotes"."UUID" WHERE "titles"."userID" = ?`, [hashedUserID]); const sbSubmissions = () => db.prepare("get", `SELECT COUNT(*) as count FROM "sponsorTimes" WHERE "userID" = ? AND "votes" > 0 LIMIT 3`, [hashedUserID]); - if (voteSum.voteSum > 3 || isVip || (await sbSubmissions()).count > 2) { + if (voteSum.voteSum > 1 || isVip || (await sbSubmissions()).count > 2) { return 0; } else { return -1;