diff options
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r-- | util/pubsub.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua index 628fdc59..72f7f5a7 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -597,6 +597,12 @@ function service:get_last_item(node, actor) return false, "forbidden"; end -- + + -- Check node exists + if not self.nodes[node] then + return false, "item-not-found"; + end + -- Returns success, id, item return true, self.data[node]:tail(); end |