chore: lint
This commit is contained in:
@@ -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' });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user