Commit 7d68845c authored by A. Koch's avatar A. Koch

throw 404 on missing source

parent ceef59a6
Pipeline #1040 passed with stage
...@@ -42,7 +42,7 @@ class Metadata extends TinyEmitter { ...@@ -42,7 +42,7 @@ class Metadata extends TinyEmitter {
annotation = result.data annotation = result.data
source = annotation.body.source.id source = annotation.body.source.id
} }
if (!annotation && !source) return _this._errorResponse(res, 404) if (!source) return _this._errorResponse(res, 404)
const key = `metadata_${ObjectUtil.slug(source)}` const key = `metadata_${ObjectUtil.slug(source)}`
let metadata let metadata
if (_this._memcached) { if (_this._memcached) {
......
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