feat: get robot by user id
This commit is contained in:
@@ -107,7 +107,8 @@ router.put('/runs/:id', requireSignIn, async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const recording = await Robot.findOne({
|
const recording = await Robot.findOne({
|
||||||
where: {
|
where: {
|
||||||
'recording_meta.id': req.params.id
|
'recording_meta.id': req.params.id,
|
||||||
|
userId: req.user.id,
|
||||||
},
|
},
|
||||||
raw: true
|
raw: true
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user