Commit 51635b6 ml9951
committed
1 parent ab36e14 commit 51635b6 Copy full SHA for 51635b6
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,8 @@ class FeedProc{
148
148
return ps [ i ] ( ) . then ( ( ) => this . seq ( ps , i + 1 ) ) ;
149
149
}
150
150
151
+
152
+
151
153
/**
152
154
* Perform a single iteration of fetching data from the API
153
155
* @return {void } - data is inserted in the DB
@@ -162,8 +164,7 @@ class FeedProc{
162
164
} ) )
163
165
. then ( ( { meta, response} ) => {
164
166
this . lastID = response . pagination . max_id || this . lastID ;
165
- // return this.seq(response.checkins.items.map(c => () => this.processCheckin(c)), 0);
166
- return Promise . all ( response . checkins . items . map ( this . processCheckin . bind ( this ) ) )
167
+ return this . seq ( response . checkins . items . map ( c => ( ) => this . processCheckin ( c ) ) , 0 ) ;
167
168
} )
168
169
. then ( checkins => {
169
170
if ( checkins . length > 12 ) {
You can’t perform that action at this time.
0 commit comments