mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 01:39:31 +02:00
Increase family bulk deletion limit
This commit is contained in:
parent
74c4382fe0
commit
7e7caae583
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue