feat: pass recording id to run metadata
This commit is contained in:
@@ -99,7 +99,7 @@ router.put('/runs/:fileName', requireSignIn, async (req, res) => {
|
|||||||
if (!recording || !recording.recordingId) {
|
if (!recording || !recording.recordingId) {
|
||||||
return res.status(404).send({ error: 'Recording not found' });
|
return res.status(404).send({ error: 'Recording not found' });
|
||||||
}
|
}
|
||||||
|
|
||||||
const proxyConfig = await getDecryptedProxyConfig(req.user.id);
|
const proxyConfig = await getDecryptedProxyConfig(req.user.id);
|
||||||
let proxyOptions: any = {};
|
let proxyOptions: any = {};
|
||||||
|
|
||||||
@@ -126,6 +126,7 @@ router.put('/runs/:fileName', requireSignIn, async (req, res) => {
|
|||||||
const run_meta = {
|
const run_meta = {
|
||||||
status: 'RUNNING',
|
status: 'RUNNING',
|
||||||
name: req.params.fileName,
|
name: req.params.fileName,
|
||||||
|
recordingId: recording.id,
|
||||||
startedAt: new Date().toLocaleString(),
|
startedAt: new Date().toLocaleString(),
|
||||||
finishedAt: '',
|
finishedAt: '',
|
||||||
browserId: id,
|
browserId: id,
|
||||||
|
|||||||
Reference in New Issue
Block a user