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
64f9d759
authored
Apr 21, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Create core when added scene
parent
304b2851
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
sails/src/api/controllers/SceneController.js
sails/src/api/controllers/SceneController.js
View file @
64f9d759
...
@@ -22,6 +22,15 @@ module.exports = {
...
@@ -22,6 +22,15 @@ module.exports = {
supervisor
:
params
.
id_sup
,
supervisor
:
params
.
id_sup
,
student
:
params
.
id_stu
student
:
params
.
id_stu
}).
then
(
scene
=>
{
}).
then
(
scene
=>
{
if
(
scene
.
categories
){
Model
.
query
(
'CALL scene_create_core('
+
scene
.
id
+
','
+
scene
.
student
+
') '
,
function
(
err
,
result
)
{
if
(
err
)
{
return
res
.
serverError
(
"Could not call stored procedure create scene picto core "
+
err
);
}
else
{
return
res
.
ok
(
scene
);
}
});
}
return
res
.
ok
(
scene
);
return
res
.
ok
(
scene
);
}).
catch
(
function
(
err
){
}).
catch
(
function
(
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