Fix get views endpoint returning built in by_link view

This commit is contained in:
Andrew Kingston 2020-10-04 17:59:49 +01:00
parent 537c5a81e0
commit f5ed9b9f32
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ const controller = {
const response = [] const response = []
for (let name of Object.keys(designDoc.views)) { for (let name of Object.keys(designDoc.views)) {
// Only return custom views
if (name === "by_link") {
continue
}
response.push({ response.push({
name, name,
...designDoc.views[name], ...designDoc.views[name],