Mark the default team for an user in an org with the default flag (#8552)

This commit is contained in:
Pablo Alba 2026-03-09 17:46:10 +01:00 committed by GitHub
parent ab20019e81
commit b0ad6d7fdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,10 +120,10 @@
(let [features (-> (cfeat/get-enabled-features cf/flags)
(set/difference cfeat/frontend-only-features)
(set/difference cfeat/no-team-inheritable-features))
;; TODO Choose a better name and manage a default-in-org setting
params {:profile-id profile-id
:name "Default"
:features features
:name "NitrateDefault"}
:is-default true}
team (db/tx-run! cfg teams/create-team params)]
(select-keys team [:id])))