Skip to content

Commit

Permalink
Merge pull request #216 from nzzdev/release-10.0.4
Browse files Browse the repository at this point in the history
Release 10.0.4
  • Loading branch information
manuelroth committed Mar 12, 2021
2 parents 37f0202 + 2023322 commit 8415bc5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Greenkeeper badge](https://badges.greenkeeper.io/nzzdev/Q-server.svg)](https://greenkeeper.io/)

**Maintainer**: [Sharon Funke](https://github.com/fuenkchen)
**Maintainer**: [Manuel Roth](https://github.com/manuelroth)

__Q__ is a system that lets journalists create visual elements for stories. It is developed by [NZZ Editorial Tech](https://twitter.com/NZZEditoTech) and [NZZ Visuals](https://twitter.com/NZZVisuals) and used in the [NZZ](https://www.nzz.ch) newsroom. There is a Demo over here: https://editor.q.tools

Expand Down
40 changes: 29 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nzz/q-server",
"version": "10.0.3",
"version": "10.0.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
17 changes: 10 additions & 7 deletions plugins/core/base/routes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ module.exports = {
options: {
auth: {
strategy: "q-auth",
mode: "try"
mode: "try",
},
cors: {
credentials: true,
},
validate: {
query: {
Expand All @@ -19,10 +22,10 @@ module.exports = {
department: Joi.string().optional(),
publication: Joi.string().optional(),
active: Joi.boolean().optional(),
searchString: Joi.string().optional()
}
searchString: Joi.string().optional(),
},
},
tags: ["api", "editor"]
tags: ["api", "editor"],
},
handler: async (request, h) => {
// Creates new object filterProperties which contains all properties but bookmark and limit
Expand All @@ -33,8 +36,8 @@ module.exports = {
bookmark,
session: {
credentials: request.auth.credentials,
artifacts: request.auth.artifacts
}
artifacts: request.auth.artifacts,
},
});
}
},
};

0 comments on commit 8415bc5

Please sign in to comment.