Db structure changes

This commit is contained in:
mrfry 2021-05-12 10:15:32 +02:00
parent 6eef9fd1c0
commit bf2f63e810
6 changed files with 19 additions and 93 deletions

View file

@ -7,14 +7,14 @@ interface Options {
excludeFromStats: Array<string>
}
export default function(options: Options): any {
export default function (options: Options): any {
const loggableKeywords = options ? options.loggableKeywords : undefined
const loggableModules = options ? options.loggableModules : undefined
const exceptions = options.exceptions || []
const excludeFromStats = options.excludeFromStats || []
return function(req, res, next) {
res.on('finish', function() {
return function (req, res, next) {
res.on('finish', function () {
// TODO: test this
const isException = exceptions.some((ex) => {
return req.url.includes(ex)