Merge pull request #23820 from overleaf/jdt-transition-wf-accounts-script

Script to transition WF users from auto-load to auto-create

GitOrigin-RevId: 538ff04dece52e4c46a4a592cb5089d20eb5aa7a
This commit is contained in:
Jimmy Domagala-Tang
2025-02-27 08:41:50 -06:00
committed by Copybot
parent aedb835067
commit 1c199e85aa
5 changed files with 107 additions and 13 deletions
@@ -0,0 +1,12 @@
const CHUNK_SIZE = 1000
// Function to chunk the array
export function chunkArray(array, size = CHUNK_SIZE) {
const result = []
for (let i = 0; i < array.length; i += size) {
result.push(array.slice(i, i + size))
}
return result
}
export default { chunkArray }