diff --git a/lib/api/sql/query-controller.js b/lib/api/sql/query-controller.js index f88cb522..7c47ad27 100644 --- a/lib/api/sql/query-controller.js +++ b/lib/api/sql/query-controller.js @@ -7,7 +7,7 @@ const authorization = require('../middlewares/authorization'); const connectionParams = require('../middlewares/connection-params'); const timeoutLimits = require('../middlewares/timeout-limits'); const params = require('../middlewares/params'); -const log = require('../middlewares/log-query'); +const logQuery = require('../middlewares/log-query'); const cancelOnClientAbort = require('../middlewares/cancel-on-client-abort'); const affectedTables = require('../middlewares/affected-tables'); const accessValidator = require('../middlewares/access-validator'); @@ -44,7 +44,7 @@ module.exports = class QueryController { connectionParams(this.userDatabaseService), timeoutLimits(this.metadataBackend), params({ strategy: 'query' }), - log(), + logQuery(), cancelOnClientAbort(), affectedTables(), accessValidator(),