diff --git a/api.js b/api.js index 9bb1676c..76e5e38c 100644 --- a/api.js +++ b/api.js @@ -10,10 +10,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI */ var Logger = require("./logger"); -var ActionLog = require("./actionlog"); var fs = require("fs"); module.exports = function (Server) { + var ActionLog = require("./actionlog")(Server); function getIP(req) { var raw = req.connection.remoteAddress; var forward = req.header("x-forwarded-for");