Moving to CSS Variables #4

Merged
tmshv merged 7 commits from dev into master 2018-05-23 07:29:04 +00:00
Showing only changes of commit a52b845285 - Show all commits
+2 -3
View File
@@ -10,15 +10,14 @@ export function queryObject() {
const processors = [toTrue, toFalse] const processors = [toTrue, toFalse]
return async(ctx, next) => { return async(ctx, next) => {
let query = ctx.query
ctx.query = Object ctx.query = Object
.keys(query) .keys(ctx.query)
.reduce((query, key) => assign( .reduce((query, key) => assign(
query, query,
key, key,
processors processors
.reduce((value, fn) => fn(value), query[key]) .reduce((value, fn) => fn(value), query[key])
), query) ), ctx.query)
await next() await next()
} }