mirror of
https://github.com/balkian/hook.io-sparql.git
synced 2025-09-02 09:32:21 +00:00
Fixed null callback
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user