Commit 4b345029 authored by A. Koch's avatar A. Koch

don't set uuid in routes

parent b2b65d38
Pipeline #1111 passed with stage
......@@ -18,7 +18,6 @@ class Metadata extends TinyEmitter {
api.app.post('/conversions', async (req, res) => {
const jobId = ObjectUtil.uuid4()
req.body.uuid = ObjectUtil.uuid4()
_this._queue.add(req.body, { jobId })
_this._response(req, res, { jobId })
})
......
......@@ -38,7 +38,6 @@ class Sequences extends TinyEmitter {
return item.body.source.type === 'video/mp4'
})
}
req.body.uuid = ObjectUtil.uuid4()
const jobId = ObjectUtil.uuid4()
if (!req.body.sources && !req.body.map) return _this._errorResponse(res, 404)
_this._queue.add(req.body, { jobId })
......
......@@ -20,7 +20,6 @@ class Timecodes extends TinyEmitter {
api.app.post('/timecodes', async (req, res) => {
const jobId = ObjectUtil.uuid4()
req.body.uuid = ObjectUtil.uuid4()
_this._queue.add(req.body, { jobId })
_this._response(req, res, { jobId })
})
......
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