feat: check robotMetaId

This commit is contained in:
karishmas6
2024-10-10 06:22:53 +05:30
parent 2b6954bd5f
commit b6d44250c4

View File

@@ -140,7 +140,8 @@ router.get("/robots/:id/runs/:runId", requireAPIKey, async (req: Request, res: R
try {
const run = await Run.findOne({
where: {
runId: req.params.runId
runId: req.params.runId,
robotMetaId: req.params.id,
},
raw: true
});