Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhidalgo committed Apr 15, 2015
1 parent 1b22ee8 commit 608ab20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/Data-API.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ class Data_API extends Swagger_GraphDB
cache_Key = "article_#{ref}.json"
@.open_Import_Service res, cache_Key, (import_Service)=>
import_Service.graph_Find.find_Article ref, (article_Id)=>
data = { article_Id: article_Id}
@close_Import_Service_and_Send import_Service, res, data, cache_Key
if (article_Id?)
data = { article_Id: article_Id}
@close_Import_Service_and_Send import_Service, res, data, cache_Key
else
import_Service.graph.closeDb =>
res.send data?.json_pretty()

articles: (req,res)=>
cache_Key = 'articles.json'
Expand Down

0 comments on commit 608ab20

Please sign in to comment.