dev: fix cache refresh for invalid origins

This commit is contained in:
KernelDeimos
2025-02-14 09:49:07 -05:00
parent cfa1447df6
commit fbd5ffd85d
@@ -609,7 +609,13 @@ class AppInformationService extends BaseService {
// only count the referral if the origin hashes to the app's uid
const svc_auth = this.services.get('auth');
const expected_uid = await svc_auth.app_uid_from_origin(origin);
let expected_uid;
try {
expected_uid = await svc_auth.app_uid_from_origin(origin);
} catch (e) {
// This happens if the app origin isn't valid
continue;
}
if ( expected_uid !== app.uid ) {
continue;
}