Init commit

This commit is contained in:
ShreejitPanchal
2026-05-19 19:56:02 +08:00
commit 6601501eff
4047 changed files with 2185372 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { MAX_SQL_DELETE_ITEMS } from '@server/initializers/constants.js'
export async function safeBulkDestroy (destroyFn: () => Promise<number>) {
const destroyedRows = await destroyFn()
if (destroyedRows === MAX_SQL_DELETE_ITEMS) {
return safeBulkDestroy(destroyFn)
}
}