Merge branch 'dev' into clients-user

This commit is contained in:
miloschwartz
2025-12-05 15:17:32 -05:00
27 changed files with 2882 additions and 1896 deletions

View File

@@ -1743,7 +1743,12 @@ hybridRouter.post(
tls: logEntry.tls
}));
await db.insert(requestAuditLog).values(logEntries);
// batch them into inserts of 100 to avoid exceeding parameter limits
const batchSize = 100;
for (let i = 0; i < logEntries.length; i += batchSize) {
const batch = logEntries.slice(i, i + batchSize);
await db.insert(requestAuditLog).values(batch);
}
return response(res, {
data: null,