Skip to content

Commit c33c87c

Browse files
author
ml9951
committed
Get lastID by first checkin not pagination
1 parent 9039d57 commit c33c87c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/feed-proc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ class FeedProc{
167167
min_id : this.lastID
168168
}))
169169
.then(({meta, response}) => {
170-
this.lastID = response.pagination.max_id || this.lastID;
170+
if(response.checkins.count > 0){
171+
this.lastID = response.checkins.items[0].checkin_id;
172+
}
171173
return this.seq(response.checkins.items.map(c => () => this.processCheckin(c)), 0, []);
172174
})
173175
.then(checkins => {

0 commit comments

Comments
 (0)