🐛 Fix organization invitation schema validation for logo URI (#11238)

This commit is contained in:
María Valderrama 2026-08-13 13:15:59 +02:00 committed by GitHub
parent 3db7548c19
commit c7f036bed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
[app.common.types.organization :as cto]
[app.common.types.profile :refer [schema:profile, schema:basic-profile]]
[app.common.types.team :refer [schema:team]]
[app.common.uri :as u]
[app.common.uuid :as uuid]
[app.config :as cf]
[app.db :as db]
@ -499,7 +500,7 @@ RETURNING id, deleted_at;")
{:id id
:name name
:initials (if logo-id "" (d/get-initials name))
:logo (when logo-id (files/resolve-public-uri logo-id))
:logo (when logo-id (u/uri (files/resolve-public-uri logo-id)))
:avatar-bg-url (when-not logo-id avatar-bg-url)
:sso-active (true? sso-active)}))

View File

@ -178,7 +178,7 @@
(t/is (th/success? out))
(t/is (= "Trusted Organization" (:name organization)))
(t/is (= "" (:initials organization)))
(t/is (str/ends-with? (:logo organization)
(t/is (str/ends-with? (str (:logo organization))
(str "/assets/by-id/" logo-id)))
(t/is (nil? (:avatar-bg-url organization)))
(t/is (true? (:sso-active organization))))))))