leeseohyeon

빠른 액세스 수정

...@@ -15,7 +15,7 @@ router.get('/:name', function (req, res) { ...@@ -15,7 +15,7 @@ router.get('/:name', function (req, res) {
15 var targetPath = 'trashcan'; 15 var targetPath = 'trashcan';
16 var sourceFile = curPath.substring(1) + file_name; 16 var sourceFile = curPath.substring(1) + file_name;
17 17
18 - var sql1 = 'UPDATE files SET location = ? WHERE location = ? AND file_name = ? AND user_id = ?;'; 18 + var sql1 = 'UPDATE files SET location = ?, recent_access=NULL WHERE location = ? AND file_name = ? AND user_id = ?;';
19 connection.query(sql1, ['/trashcan/', curPath, file_name, user_id], function (err) { 19 connection.query(sql1, ['/trashcan/', curPath, file_name, user_id], function (err) {
20 if (err) { 20 if (err) {
21 console.log('update db error'); 21 console.log('update db error');
......