From 8e090daa9cfbfae283b3e8585f0bd893a9cd78a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 25 Oct 2023 22:15:03 +0200 Subject: [PATCH] Fetch web app metadata when creating RS auth --- app/models/remote_storage_authorization.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/remote_storage_authorization.rb b/app/models/remote_storage_authorization.rb index b4fe715..f1aee26 100644 --- a/app/models/remote_storage_authorization.rb +++ b/app/models/remote_storage_authorization.rb @@ -64,6 +64,7 @@ class RemoteStorageAuthorization < ApplicationRecord def find_or_create_web_app if looks_like_hosted_origin? web_app = AppCatalog::WebApp.find_or_create_by!(url: self.url) + web_app.update_metadata unless web_app.name.present? self.web_app = web_app self.app_name = web_app.name.presence || client_id else