@@ -185,8 +185,7 @@ class AppInformationService {
185185 const db = this . services . get ( 'database' ) . get ( DB_READ , 'apps' ) ;
186186
187187 let apps = await db . read ( 'SELECT * FROM apps' ) ;
188- for ( let index = 0 ; index < apps . length ; index ++ ) {
189- const app = apps [ index ] ;
188+ for ( const app of apps ) {
190189 kv . set ( 'apps:name:' + app . name , app ) ;
191190 kv . set ( 'apps:id:' + app . id , app ) ;
192191 kv . set ( 'apps:uid:' + app . uid , app ) ;
@@ -249,9 +248,6 @@ class AppInformationService {
249248 const apps = await db . read ( `SELECT uid, index_url FROM apps` ) ;
250249
251250 for ( const app of apps ) {
252- const sql =
253- `SELECT COUNT(id) AS referral_count FROM user WHERE referrer = ?` ;
254-
255251 const origin = origin_from_url ( app . index_url ) ;
256252
257253 // only count the referral if the origin hashes to the app's uid
@@ -286,7 +282,6 @@ class AppInformationService {
286282 */
287283 async _refresh_recent_cache ( ) {
288284 const app_keys = kv . keys ( `apps:uid:*` ) ;
289- // console.log('APP KEYS', app_keys);
290285
291286 let apps = [ ] ;
292287 for ( const key of app_keys ) {
@@ -314,7 +309,6 @@ class AppInformationService {
314309 */
315310 async _refresh_tags ( ) {
316311 const app_keys = kv . keys ( `apps:uid:*` ) ;
317- // console.log('APP KEYS', app_keys);
318312
319313 let apps = [ ] ;
320314 for ( const key of app_keys ) {
0 commit comments