Use apps.publishedAt to filter for new apps

This commit is contained in:
Johannes Zellner
2022-11-10 19:54:07 +01:00
parent c9a69b2876
commit 139d7c4e22
+1 -1
View File
@@ -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;