feat: use default org for PostUser (#12143)

Instead of assuming only 1 org exists, this uses the
is_default org to place a user in if not specified.
This commit is contained in:
Steven Masley
2024-02-16 08:28:36 -06:00
committed by GitHub
parent 0e1bad4f82
commit 2a8004b1b2
10 changed files with 101 additions and 13 deletions
+10
View File
@@ -1,3 +1,13 @@
-- name: GetDefaultOrganization :one
SELECT
*
FROM
organizations
WHERE
is_default = true
LIMIT
1;
-- name: GetOrganizations :many
SELECT
*