From dc5dc5f85f67f2b753db9f193e77ed714e95fcea Mon Sep 17 00:00:00 2001 From: Alan Cohen Date: Tue, 26 May 2015 17:11:36 -0700 Subject: [PATCH] RLJS-367 Correct previous/next hash for notifications endpoint --- api/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/notifications.js b/api/notifications.js index 93d35d02..76e8c3c3 100644 --- a/api/notifications.js +++ b/api/notifications.js @@ -318,8 +318,8 @@ function getNotifications(account, urlBase, options, callback) { // Attaching previous and next identifiers var idx = baseTransactions.indexOf(transaction); - var previous = baseTransactions[idx + 1]; - var next = baseTransactions[idx - 1]; + var previous = baseTransactions[idx - 1]; + var next = baseTransactions[idx + 1]; if (!options.earliest_first) { args.previous_hash = previous ? previous.hash : undefined;