chore: lint

This commit is contained in:
karishmas6
2024-09-15 19:18:41 +05:30
parent 582f37bf34
commit 70136f9ca9

View File

@@ -35,7 +35,7 @@ router.get('/auth/google/callback', async (req, res) => {
console.error('Error during authentication:', error); console.error('Error during authentication:', error);
res.status(500).send('Authentication failed'); res.status(500).send('Authentication failed');
} }
}); });
router.get('/sheets', async (req, res) => { router.get('/sheets', async (req, res) => {
try { try {
@@ -49,7 +49,7 @@ router.get('/sheets', async (req, res) => {
console.error('Error listing sheets:', error); console.error('Error listing sheets:', error);
res.status(500).send('Failed to list sheets'); res.status(500).send('Failed to list sheets');
} }
}); });
router.get('/sheets/:sheetId', async (req, res) => { router.get('/sheets/:sheetId', async (req, res) => {
try { try {
@@ -63,7 +63,7 @@ router.get('/sheets/:sheetId', async (req, res) => {
console.error('Error reading sheet:', error); console.error('Error reading sheet:', error);
res.status(500).send('Failed to read sheet'); res.status(500).send('Failed to read sheet');
} }
}); });
router.post('/sheets/:sheetId', async (req, res) => { router.post('/sheets/:sheetId', async (req, res) => {
try { try {
@@ -81,4 +81,4 @@ router.post('/sheets/:sheetId', async (req, res) => {
console.error('Error writing to sheet:', error); console.error('Error writing to sheet:', error);
res.status(500).send('Failed to write to sheet'); res.status(500).send('Failed to write to sheet');
} }
}); });