From 23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 18 Aug 2018 15:10:41 +0100 Subject: Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/pubsub.lua b/util/pubsub.lua index b4b9ada9..3fbf1b45 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -604,7 +604,7 @@ function service:get_last_item(node, actor) end -- Returns success, id, item - return true, self.data[node]:tail(); + return true, self.data[node]:head(); end function service:get_nodes(actor) -- cgit v1.2.3