Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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'); | ... | ... |
-
Please register or login to post a comment