Commit e718a88a authored by A. Koch's avatar A. Koch

decode find query

parent 6cbca043
......@@ -18,7 +18,7 @@ class Service extends TinyEmitter {
const _this = this
app.get(`/${this._name}`, async (req, res) => {
const results = await this.client.find(req.params.query || {}, req.params)
const results = await this.client.find(JSON.parse(req.params.query || '{}'), req.params)
_this._response(req, res, { items: results })
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment