Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions functions/send-email-link/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,11 @@ app.post('/', async (req: any, res: any, next: any) => {
...(schemata && { schemata }),
});

// For GetDatabaseInfo query - uses same API routing as client
// The private API exposes both user and database queries
// For GetDatabaseInfo query - uses X-Meta-Schema to access platform data
// (databases, sites, domains, siteThemes, siteModules are platform-level data)
const meta = createGraphQLClient(metaGraphqlUrl, {
hostHeaderEnvVar: 'META_GRAPHQL_HOST_HEADER',
databaseId,
...(apiName && { apiName }),
...(schemata && { schemata }),
useMetaSchema: true,
});

const result = await sendEmailLink(params, {
Expand Down
Loading