mirror of
https://github.com/balkian/hook.io-sparql.git
synced 2024-11-21 13:12:29 +00:00
Fixed null callback
This commit is contained in:
parent
8abe7e4d20
commit
41b7b9198f
@ -31,7 +31,7 @@ class SPARQLHook extends Hook
|
||||
query: (query, cb) ->
|
||||
console.log ">>Going to query"
|
||||
@client.rows query, (err, res) ->
|
||||
cb res
|
||||
cb? res
|
||||
|
||||
addPreffix: (key,url) ->
|
||||
@client.prefix_map[key] = url
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "hook.io-sparql",
|
||||
"description": "SparQL hook queries",
|
||||
"keywords" : [ "hook", "hook.io", "sparql" ],
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"bugs" : { "url" : "http://github.com/balkian/hook.io-sparql/issues" },
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user