Increased dangerous query bindings threshold.
This commit is contained in:
@@ -15,7 +15,7 @@ const knexInstance = knex({
|
||||
knexInstance.on('query', function onQuery(query) {
|
||||
const bindingCount = query.bindings?.length ?? 0;
|
||||
|
||||
if (bindingCount > 10000) {
|
||||
if (bindingCount > 50000) {
|
||||
const error = new Error(`[knex] Dangerous query: ${bindingCount} bindings detected: ${query.sql?.slice(0, 200)}${query.sql?.length > 200 ? '...' : ''}`);
|
||||
|
||||
Error.captureStackTrace(error, onQuery);
|
||||
|
||||
Reference in New Issue
Block a user