feat: get robot by user id

This commit is contained in:
karishmas6
2024-10-21 20:43:50 +05:30
parent 1e4ac01633
commit 00e21290f0

View File

@@ -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
}); });