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

fix missing api ref

parent 94b383da
Pipeline #1094 passed with stage
......@@ -6,7 +6,7 @@ const
{ ObjectUtil } = require('mbjs-utils'),
getMetaData = require('mbjs-media/src/util/get-metadata')
const fetchMetaData = async (annotation, user, annotationsService) => {
const fetchMetaData = async (annotation, user, annotationsService, api) => {
let meta
try {
meta = await getMetaData(annotation, async query => {
......@@ -57,7 +57,7 @@ class Metadata extends TinyEmitter {
})
}
if (!metadata) {
metadata = await fetchMetaData(annotation || source, req.user, _this._annotations)
metadata = await fetchMetaData(annotation || source, req.user, _this._annotations, api)
if (_this._memcached && metadata) {
await new Promise((resolve, reject) => {
_this._memcached.set(key, metadata, parseInt(config.metadata.lifetime.toString()), err => {
......
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