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 15:09:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f4c8f6a127177d034b442e3a8ac6217f111d90e2
f4c8f6a1
1 parent
525538d2
공유완료
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
backend/routes/share.js
backend/routes/share.js
View file @
f4c8f6a
...
...
@@ -18,7 +18,7 @@ router.post('/', function(req, res, next) {
let
target_id
=
req
.
body
.
target_id
;
let
checkfile
=
'SELECT * FROM files WHERE location = ? AND file_name = ? AND user_id = ?'
;
connection
.
query
(
checkfile
,
[
cur
Path
,
name
,
user_id
],
function
(
err1
,
rows
,
fields
)
{
connection
.
query
(
checkfile
,
[
cur
,
name
,
user_id
],
function
(
err1
,
rows
,
fields
)
{
if
(
rows
.
length
!=
0
)
{
let
copy_params
=
{
Bucket
:
BUCKET_NAME
,
...
...
@@ -43,6 +43,7 @@ router.post('/', function(req, res, next) {
}
});
}
else
{
console
.
log
(
"Does not exist"
);
res
.
status
(
304
).
send
({
error
:
"Does not exist"
});
}
});
...
...
Please
register
or
login
to post a comment