Use apps.publishedAt to filter for new apps
This commit is contained in:
@@ -531,7 +531,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$tran
|
||||
|
||||
do {
|
||||
var offset = moment().subtract(i++, 'days');
|
||||
tmp = apps.filter(function (app) { return moment(app.ts).isAfter(offset); }); // ts here is from appstore's apps table
|
||||
tmp = apps.filter(function (app) { return moment(app.publishedAt).isAfter(offset); });
|
||||
} while(tmp.length < minApps);
|
||||
|
||||
return tmp;
|
||||
|
||||
Reference in New Issue
Block a user