chore: lint

This commit is contained in:
karishmas6
2024-10-21 02:34:00 +05:30
parent 0fe48677d2
commit 71b6d047d1

View File

@@ -302,7 +302,7 @@ router.post('/gsheets/data', requireSignIn, async (req, res) => {
router.get('/gsheets/files', requireSignIn, async (req, res) => { router.get('/gsheets/files', requireSignIn, async (req, res) => {
try { try {
const robotId = req.query.robotId; const robotId = req.query.robotId;
const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw:true }); const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw: true });
if (!robot) { if (!robot) {
return res.status(400).json({ message: 'Robot not found' }); return res.status(400).json({ message: 'Robot not found' });
@@ -357,7 +357,6 @@ router.post('/gsheets/update', requireSignIn, async (req, res) => {
router.post('/gsheets/remove', requireSignIn, async (req, res) => { router.post('/gsheets/remove', requireSignIn, async (req, res) => {
const { robotId } = req.body; const { robotId } = req.body;
if (!robotId) { if (!robotId) {
return res.status(400).json({ message: 'Robot ID is required' }); return res.status(400).json({ message: 'Robot ID is required' });
} }