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
Hong
2020-06-10 00:16:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d5430b3cb3918e33924c3f09d18808805490dde
4d5430b3
1 parent
836a5551
.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
backend/routes/folders.js
backend/routes/folders.js
View file @
4d5430b
...
...
@@ -70,7 +70,7 @@ router.get('/show', function(req, res, next) {
});
}
else
{
let
checkfolder
=
'SELECT * FROM folders WHERE folder_id = ? AND user_id = ?;'
;
connection
.
query
(
checkfolder
,
[
curPath
,
user_id
],
function
(
err
,
rows
)
{
connection
.
query
(
checkfolder
,
[
folder_id
,
user_id
],
function
(
err
,
rows
)
{
if
(
err
)
{
console
.
log
(
'select1 error'
);
res
.
status
(
400
).
send
({
err
:
err
});
...
...
@@ -169,7 +169,7 @@ router.post('/delfolder', function(req, res, next) {
Bucket
:
BUCKET_NAME
,
Key
:
'drive/'
+
curPath
+
folder_name
+
'/'
};
let
infolderpath
=
cur
+
name
+
'/'
;
let
infolderpath
=
cur
+
folder_
name
+
'/'
;
let
checkinfolder
=
'SELECT location FROM folders WHERE location = ? AND user_id = ? UNION ALL SELECT location FROM files WHERE location = ? AND user_id = ?;'
;
connection
.
query
(
checkinfolder
,
[
infolderpath
,
user_id
,
infolderpath
,
user_id
],
function
(
err
,
infolder
)
{
if
(
err
)
{
...
...
Please
register
or
login
to post a comment