feat: remove user code

This commit is contained in:
karishmas6
2024-10-17 17:22:40 +05:30
parent 12f13e6bcc
commit 4b14cfedda

View File

@@ -301,12 +301,6 @@ router.post('/gsheets/data', requireSignIn, async (req, res) => {
// Step 4: Get user's Google Sheets files (new route)
router.get('/gsheets/files', requireSignIn, async (req, res) => {
try {
// const user = await User.findByPk(req.user.id, { raw: true });
// if (!user) {
// return res.status(400).json({ message: 'User not found' });
// }
const robotId = req.query.robotId;
const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw:true });