Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Created June 30, 2015 15:43
Show Gist options
  • Save ashleygwilliams/1616c1e58db58e177935 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/1616c1e58db58e177935 to your computer and use it in GitHub Desktop.
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