Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
RLJS-367 Correct previous/next hash for notifications endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Cohen committed May 27, 2015
1 parent 4541973 commit dc5dc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc5dc5f

Please sign in to comment.