Skip to content

Commit 187b14d

Browse files
authored
fix: remove last opened (#2729)
1 parent 2da083e commit 187b14d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

extensions/installedApps/src/controllers/InstalledAppsController.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,20 @@ export class InstalledAppsController extends ExtensionController {
4545

4646
const installedApps = await this.#db.read(
4747
`SELECT
48-
apps.id,
4948
apps.name,
5049
apps.uid,
5150
apps.title,
5251
apps.description,
5352
MIN(perm.dt) AS installed_at,
54-
MAX(app_opens.ts) AS last_opened
5553
FROM apps
5654
LEFT JOIN user_to_app_permissions AS perm ON apps.id = perm.app_id
57-
LEFT JOIN app_opens ON app_opens.app_uid = apps.uid AND app_opens.user_id = ?
5855
WHERE perm.user_id = ?
5956
GROUP BY apps.id, apps.name, apps.uid, apps.title, apps.description
6057
ORDER BY ${orderByField} ${sortDirection}
6158
LIMIT ?
6259
OFFSET ?`,
6360
[actor.type.user.id, actor.type.user.id, limit, offset],
6461
) as {
65-
id: number;
6662
name: string;
6763
uid: string;
6864
title: string;

0 commit comments

Comments
 (0)