Superalgos Network: Events Query implemented. Deep Scan Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2021-08-27 14:22:04 +02:00
1 parent fd3bddf540
commit 72cf70617d
3 files changed
+6

No files matched your search

+2
View File
@@ -98,6 +98,7 @@ exports.newEvents = function newEvents() {
if (event === undefined) { break }
checkEventContext(event)
}
break
}
case DIRECTION_PAST: {
for (let i = thisObject.initialIndex; i > thisObject.initialIndex - thisObject.amountRequested; i--) {
@@ -105,6 +106,7 @@ exports.newEvents = function newEvents() {
if (event === undefined) { break }
checkEventContext(event)
}
break
}
}
return response
+2
View File
@@ -94,6 +94,7 @@ exports.newPostReplies = function newPostReplies() {
if (post === undefined) { break }
addToResponse(post)
}
break
}
case DIRECTION_PAST: {
for (let i = thisObject.initialIndex; i > thisObject.initialIndex - thisObject.amountRequested; i--) {
@@ -101,6 +102,7 @@ exports.newPostReplies = function newPostReplies() {
if (post === undefined) { break }
addToResponse(post)
}
break
}
}
return response
+2
View File
@@ -98,6 +98,7 @@ exports.newProfilePosts = function newProfilePosts() {
if (post === undefined) { break }
addToResponse(post)
}
break
}
case DIRECTION_PAST: {
for (let i = thisObject.initialIndex; i > thisObject.initialIndex - thisObject.amountRequested; i--) {
@@ -105,6 +106,7 @@ exports.newProfilePosts = function newProfilePosts() {
if (post === undefined) { break }
addToResponse(post)
}
break
}
}
return response