Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
406ba850
authored
Jul 26, 2016
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
issue476
parent
fc730012
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
sails/src/api/controllers/PictoController.js
sails/src/api/controllers/PictoController.js
View file @
406ba850
...
...
@@ -188,15 +188,15 @@ module.exports = {
var
params
=
req
.
params
.
all
();
if
(
!
params
.
id
)
{
res
.
badRequest
();
}
else
{
Picto
.
update
({
id
:
params
.
id
},
{
owner
:
null
}).
then
(
function
(
updated
)
{
res
.
ok
(
updated
[
0
]);
})
.
catch
(
function
()
{
res
.
serverError
();
}
);
}
re
turn
re
s
.
badRequest
();
Picto
.
update
({
id
:
params
.
id
},
{
owner
:
null
})
.
then
(
function
(
updated
)
{
return
res
.
ok
(
updated
[
0
]);
})
.
catch
(
function
(
err
)
{
return
res
.
serverError
(
"Error: "
+
err
);
}
);
},
/**
...
...
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