Created
June 30, 2015 15:43
-
-
Save ashleygwilliams/1616c1e58db58e177935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 exports.publish = function(project) { | |
18 var project = Project.query({ | |
19 where: { | |
20 id: project.id | |
21 } | |
22 }).fetch({ | |
23 withRelated: ['files'] | |
24 }) | |
25 .then(function(record) { | |
26 return record; | |
27 }).catch(function(e) { | |
28 log.error(e); | |
29 }); | |
30 | |
31 console.log(project); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment