mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Increase family bulk deletion limit
This commit is contained in:
@@ -24,7 +24,7 @@ export async function deleteOldFamilies (database: Database) {
|
|||||||
const oldFamilyIds = await findOldFamilyIds(database)
|
const oldFamilyIds = await findOldFamilyIds(database)
|
||||||
|
|
||||||
if (oldFamilyIds.length > 0) {
|
if (oldFamilyIds.length > 0) {
|
||||||
const familyIdsToDelete = oldFamilyIds.slice(0, 16) /* limit to 16 families per execution */
|
const familyIdsToDelete = oldFamilyIds.slice(0, 256) /* limit to 256 families per execution */
|
||||||
|
|
||||||
await deleteFamilies({
|
await deleteFamilies({
|
||||||
database,
|
database,
|
||||||
|
|||||||
Reference in New Issue
Block a user