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
3ca55276
authored
Sep 18, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixing issue
#336
parent
9a368174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
sails/src/api/models/Student.js
sails/src/api/models/Student.js
View file @
3ca55276
...
@@ -337,13 +337,12 @@ module.exports = {
...
@@ -337,13 +337,12 @@ module.exports = {
// filter from the second list those found in the first list
// filter from the second list those found in the first list
var
sups
=
so
.
filter
(
a
=>
ss
.
findIndex
(
b
=>
b
.
id
==
a
.
id
)
>=
0
);
var
sups
=
so
.
filter
(
a
=>
ss
.
findIndex
(
b
=>
b
.
id
==
a
.
id
)
>=
0
);
return
$
.
when
([
sups
,
Supervisor
.
find
(
id_sup
)])
return
([
sups
,
Supervisor
.
find
(
id_sup
)]);
.
spread
((
sups
,
me
)
=>
{
})
// The requester is an office, so it has to be appended to the list of valid supervisors
.
spread
((
sups
,
me
)
=>
{
sups
.
push
(
me
[
0
]);
// The requester is an office, so it has to be appended to the list of valid supervisors
return
sups
;
sups
.
push
(
me
[
0
]);
})
return
sups
;
.
catch
((
err
)
=>
{
throw
err
});
})
})
.
then
((
sups
)
=>
{
return
callback
(
null
,
sups
)})
.
then
((
sups
)
=>
{
return
callback
(
null
,
sups
)})
.
catch
((
err
)
=>
{
return
callback
(
err
,
[])});
.
catch
((
err
)
=>
{
return
callback
(
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