chore: -rm comment
This commit is contained in:
@@ -144,10 +144,9 @@ router.get('/runs/run/:fileName/:runId', async (req, res) => {
|
|||||||
*/
|
*/
|
||||||
router.post('/runs/run/:fileName/:runId', async (req, res) => {
|
router.post('/runs/run/:fileName/:runId', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
// read the recording from storage
|
|
||||||
const recording = await readFile(`./../storage/recordings/${req.params.fileName}.waw.json`)
|
const recording = await readFile(`./../storage/recordings/${req.params.fileName}.waw.json`)
|
||||||
const parsedRecording = JSON.parse(recording);
|
const parsedRecording = JSON.parse(recording);
|
||||||
// read the run from storage
|
|
||||||
const run = await readFile(`./../storage/runs/${req.params.fileName}_${req.params.runId}.json`)
|
const run = await readFile(`./../storage/runs/${req.params.fileName}_${req.params.runId}.json`)
|
||||||
const parsedRun = JSON.parse(run);
|
const parsedRun = JSON.parse(run);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user