@@ -92,7 +92,7 @@ export async function incrementEloCronJobAllQueues() {
9292 if ( elo === null ) continue
9393 const userTimeSpent = await timeSpentInQueue ( userId , queue . id )
9494 if ( userTimeSpent === null ) continue
95- const userPriorityQueueId = await getUserPriorityQueueId ( userId )
95+ const userPriorityQueueId = null // Temporary
9696
9797 const currentRange = await getCurrentEloRangeForUser ( userId , queue . id )
9898 const newRange = ( currentRange ?? start ) + increment
@@ -118,28 +118,29 @@ export async function incrementEloCronJobAllQueues() {
118118 let inRange =
119119 diff < candidates [ i ] . range && diff < candidates [ j ] . range
120120
121- // Time-in-queue check
122- const anyTooRecent = [ candidates [ i ] , candidates [ j ] ] . some (
123- ( candidate ) => {
124- if (
125- candidate . queueId === candidate . priorityQueueId ||
126- candidate . priorityQueueId === null
127- )
128- return false
129-
130- const match = candidate . timeInQueue ?. match (
131- / < t : ( \d + ) (?: : [ a - z A - Z ] ) ? > / ,
132- )
133- if ( ! match ) return false
134-
135- const tsMs = parseInt ( match [ 1 ] , 10 ) * 1000
136- const diffMinutes = ( Date . now ( ) - tsMs ) / 60000
137-
138- return diffMinutes < 3
139- } ,
140- )
141-
142- inRange = inRange && ! anyTooRecent
121+ // Temporarily removing this until its fixed
122+ // // Time-in-queue check
123+ // const anyTooRecent = [candidates[i], candidates[j]].some(
124+ // (candidate) => {
125+ // if (
126+ // candidate.queueId === candidate.priorityQueueId ||
127+ // candidate.priorityQueueId === null
128+ // )
129+ // return false
130+ //
131+ // const match = candidate.timeInQueue?.match(
132+ // /<t:(\d+)(?::[a-zA-Z])?>/,
133+ // )
134+ // if (!match) return false
135+ //
136+ // const tsMs = parseInt(match[1], 10) * 1000
137+ // const diffMinutes = (Date.now() - tsMs) / 60000
138+ //
139+ // return diffMinutes < 3
140+ // },
141+ // )
142+ //
143+ // inRange = inRange && !anyTooRecent
143144
144145 if ( inRange && diff < minDiff ) {
145146 minDiff = diff
0 commit comments