🐛 Fix column name mismatch when accepting org invitation

This commit is contained in:
Juanfran 2026-04-22 13:29:40 +02:00
parent d384f47253
commit 7d4092eeba

View File

@ -134,7 +134,7 @@
(db/delete! conn :team-invitation
(cond-> {:email-to member-email}
team-id (assoc :team-id team-id)
organization-id (assoc :organization-id organization-id)))
organization-id (assoc :org-id organization-id)))
;; Delete any request (only applicable for team invitations)
(when team-id
@ -173,7 +173,7 @@
(let [invitation (db/get* conn :team-invitation
(cond-> {:email-to member-email}
team-id (assoc :team-id team-id)
organization-id (assoc :organization-id organization-id)))
organization-id (assoc :org-id organization-id)))
profile (db/get* conn :profile
{:id profile-id}
{:columns [:id :email :default-team-id]})