Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
D_Team_Khuloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
leeseohyeon
2020-06-11 19:47:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b318043d597e7c29a7d11d1ba804301d0e20bd2
6b318043
1 parent
0e1606f4
빠른 액세스 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
backend/routes/file/deleteFile.js
backend/routes/file/deleteFile.js
View file @
6b31804
...
...
@@ -15,7 +15,7 @@ router.get('/:name', function (req, res) {
var
targetPath
=
'trashcan'
;
var
sourceFile
=
curPath
.
substring
(
1
)
+
file_name
;
var
sql1
=
'UPDATE files SET location = ? WHERE location = ? AND file_name = ? AND user_id = ?;'
;
var
sql1
=
'UPDATE files SET location = ?
, recent_access=NULL
WHERE location = ? AND file_name = ? AND user_id = ?;'
;
connection
.
query
(
sql1
,
[
'/trashcan/'
,
curPath
,
file_name
,
user_id
],
function
(
err
)
{
if
(
err
)
{
console
.
log
(
'update db error'
);
...
...
Please
register
or
login
to post a comment