spine-framework 0.3.96 → 0.3.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -152,7 +152,7 @@ export const validateToken = createHandler(async (_ctx, _body) => {
|
|
|
152
152
|
|
|
153
153
|
const { data: person } = await adminDb
|
|
154
154
|
.from('people')
|
|
155
|
-
.select('id, email, account_id, role_id, status, data, account:accounts(display_name), role:roles(slug, name)')
|
|
155
|
+
.select('id, email, account_id, role_id, status, data, account:accounts!people_account_id_fkey(display_name), role:roles(slug, name)')
|
|
156
156
|
.filter('data->>invite_token', 'eq', token)
|
|
157
157
|
.in('status', ['invited', 'pending'])
|
|
158
158
|
.single()
|
|
@@ -602,7 +602,7 @@ export const listInvites = createHandler(async (ctx, _body) => {
|
|
|
602
602
|
.select(`
|
|
603
603
|
id, email, full_name, status, created_at, updated_at,
|
|
604
604
|
account_id, role_id,
|
|
605
|
-
account:accounts(id, slug, display_name),
|
|
605
|
+
account:accounts!people_account_id_fkey(id, slug, display_name),
|
|
606
606
|
role:roles(id, slug, name),
|
|
607
607
|
data
|
|
608
608
|
`)
|