Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
a84f4578
Commit
a84f4578
authored
Nov 21, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gidstorage.js wrong response returned - fixed
parent
f3294a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/jio.storage/gidstorage.js
src/jio.storage/gidstorage.js
+3
-5
No files found.
src/jio.storage/gidstorage.js
View file @
a84f4578
...
@@ -330,7 +330,7 @@
...
@@ -330,7 +330,7 @@
if
(
method
===
'
post
'
)
{
if
(
method
===
'
post
'
)
{
return
command
.
error
(
return
command
.
error
(
"
conflict
"
,
"
conflict
"
,
"
Document already exist
"
,
"
Document already exist
s
"
,
"
Cannot
"
+
method
+
"
document
"
"
Cannot
"
+
method
+
"
document
"
);
);
}
}
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
if
(
response
.
total_rows
===
0
)
{
if
(
response
.
total_rows
===
0
)
{
return
command
.
error
(
return
command
.
error
(
"
not_found
"
,
"
not_found
"
,
"
Document already exist
"
,
"
Document already exist
s
"
,
"
Cannot
"
+
method
+
"
attachment
"
"
Cannot
"
+
method
+
"
attachment
"
);
);
}
}
...
@@ -397,9 +397,7 @@
...
@@ -397,9 +397,7 @@
command
.
storage
(
priv
.
sub_storage
)[
method
+
"
Attachment
"
](
command
.
storage
(
priv
.
sub_storage
)[
method
+
"
Attachment
"
](
doc
doc
).
then
(
function
(
response
)
{
).
then
(
function
(
response
)
{
if
(
method
!==
'
get
'
)
{
response
.
id
=
gid_object
;
response
.
id
=
gid_object
;
}
command
.
success
(
response
);
command
.
success
(
response
);
},
function
(
err
)
{
},
function
(
err
)
{
err
.
message
=
"
Cannot
"
+
method
+
"
attachment
"
;
err
.
message
=
"
Cannot
"
+
method
+
"
attachment
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment