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

throw 404 on missing source

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