diff --git a/packages/backend/src/routers/kvstore/clearItems.js b/packages/backend/src/routers/kvstore/clearItems.js index 6390148a..6a895867 100644 --- a/packages/backend/src/routers/kvstore/clearItems.js +++ b/packages/backend/src/routers/kvstore/clearItems.js @@ -38,6 +38,8 @@ module.exports = eggspress('/clearItems', { } const svc_mysql = req.services.get('mysql'); + // TODO: Check if used anywhere, maybe remove + // eslint-disable-next-line no-undef const dbrw = svc_mysql.get(DB_MODE_WRITE, 'kvstore-clearItems'); await dbrw.execute( `DELETE FROM kv WHERE user_id=? AND app=?`, diff --git a/packages/backend/src/routers/whoami.js b/packages/backend/src/routers/whoami.js index 2c267a2a..fe6bf912 100644 --- a/packages/backend/src/routers/whoami.js +++ b/packages/backend/src/routers/whoami.js @@ -101,6 +101,8 @@ WHOAMI_POST.post('/whoami', auth, fs, express.json(), async (req, response, next if(req.query.return_desktop_items === 1 || req.query.return_desktop_items === '1' || req.query.return_desktop_items === 'true'){ // by cached desktop id if(req.user.desktop_id){ + // TODO: Check if used anywhere, maybe remove + // eslint-disable-next-line no-undef desktop_items = await db.read( `SELECT * FROM fsentries WHERE user_id = ? AND parent_uid = ?`,