mirror of
https://github.com/balkian/hook.io-sparql.git
synced 2024-11-21 21:22:28 +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) ->
|
query: (query, cb) ->
|
||||||
console.log ">>Going to query"
|
console.log ">>Going to query"
|
||||||
@client.rows query, (err, res) ->
|
@client.rows query, (err, res) ->
|
||||||
cb res
|
cb? res
|
||||||
|
|
||||||
addPreffix: (key,url) ->
|
addPreffix: (key,url) ->
|
||||||
@client.prefix_map[key] = url
|
@client.prefix_map[key] = url
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "hook.io-sparql",
|
"name": "hook.io-sparql",
|
||||||
"description": "SparQL hook queries",
|
"description": "SparQL hook queries",
|
||||||
"keywords" : [ "hook", "hook.io", "sparql" ],
|
"keywords" : [ "hook", "hook.io", "sparql" ],
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"bugs" : { "url" : "http://github.com/balkian/hook.io-sparql/issues" },
|
"bugs" : { "url" : "http://github.com/balkian/hook.io-sparql/issues" },
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user