feat: check robotMetaId
This commit is contained in:
@@ -140,7 +140,8 @@ router.get("/robots/:id/runs/:runId", requireAPIKey, async (req: Request, res: R
|
|||||||
try {
|
try {
|
||||||
const run = await Run.findOne({
|
const run = await Run.findOne({
|
||||||
where: {
|
where: {
|
||||||
runId: req.params.runId
|
runId: req.params.runId,
|
||||||
|
robotMetaId: req.params.id,
|
||||||
},
|
},
|
||||||
raw: true
|
raw: true
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user