diff --git a/apps/passport/app/routes/connect/apple/callback.ts b/apps/passport/app/routes/connect/apple/callback.ts index e156a469ff..a949f92c01 100644 --- a/apps/passport/app/routes/connect/apple/callback.ts +++ b/apps/passport/app/routes/connect/apple/callback.ts @@ -71,6 +71,7 @@ export const loader: LoaderFunction = async ({ request, context }) => { name: user?.name, sub: token.sub, picture: '', + isApple: true, } const address = AddressURNSpace.componentizedUrn( diff --git a/packages/platform-middleware/edges.ts b/packages/platform-middleware/edges.ts index edb4b59c15..d75e995ce5 100644 --- a/packages/platform-middleware/edges.ts +++ b/packages/platform-middleware/edges.ts @@ -4,11 +4,11 @@ import { BaseContext } from '@kubelt/types' export const InjectEdges: BaseMiddlewareFunction< { - EDGES?: Fetcher + Edges?: Fetcher } & BaseContext > = ({ ctx, next }) => { - if (!ctx.EDGES) throw new Error('No EDGES binding found in context') - const edgesClient = createEdgesClient(ctx.EDGES) + if (!ctx.Edges) throw new Error('No Edges binding found in context') + const edgesClient = createEdgesClient(ctx.Edges) return next({ ctx: { diff --git a/platform/access/src/context.ts b/platform/access/src/context.ts index 437cbf4f1f..3440cf0e34 100644 --- a/platform/access/src/context.ts +++ b/platform/access/src/context.ts @@ -24,7 +24,7 @@ interface CreateInnerContextOptions authorization?: Authorization Starbase: Fetcher starbaseClient?: ReturnType - EDGES: Fetcher + Edges: Fetcher Account: Fetcher accountClient?: ReturnType // Added by InjectEdges middleware. diff --git a/platform/access/src/types.ts b/platform/access/src/types.ts index e4cae4f680..81b86c26df 100644 --- a/platform/access/src/types.ts +++ b/platform/access/src/types.ts @@ -21,7 +21,7 @@ export interface Environment { Authorization: DurableObjectNamespace Analytics: AnalyticsEngineDataset ServiceDeploymentMetadata: DeploymentMetadata - EDGES: Fetcher + Edges: Fetcher Starbase: Fetcher Account: Fetcher INTERNAL_JWT_ISS: string diff --git a/platform/access/wrangler.toml b/platform/access/wrangler.toml index 1d0a14336a..4f63711ea9 100644 --- a/platform/access/wrangler.toml +++ b/platform/access/wrangler.toml @@ -9,7 +9,7 @@ durable_objects.bindings = [ { name = "Authorization", class_name = "Authorization" }, ] services = [ - { binding = "EDGES", service = "edges" }, + { binding = "Edges", service = "edges" }, { binding = "Starbase", service = "starbase" }, { binding = "Account", service = "account" }, ] @@ -33,7 +33,7 @@ durable_objects.bindings = [ { name = "Authorization", class_name = "Authorization" }, ] services = [ - { binding = "EDGES", service = "edges-dev" }, + { binding = "Edges", service = "edges-dev" }, { binding = "Starbase", service = "starbase-dev" }, { binding = "Account", service = "account-dev" }, ] @@ -53,7 +53,7 @@ durable_objects.bindings = [ { name = "Authorization", class_name = "Authorization" }, ] services = [ - { binding = "EDGES", service = "edges-next" }, + { binding = "Edges", service = "edges-next" }, { binding = "Starbase", service = "starbase-next" }, { binding = "Account", service = "account-next" }, ] @@ -73,7 +73,7 @@ durable_objects.bindings = [ { name = "Authorization", class_name = "Authorization" }, ] services = [ - { binding = "EDGES", service = "edges-current" }, + { binding = "Edges", service = "edges-current" }, { binding = "Starbase", service = "starbase-current" }, { binding = "Account", service = "account-current" }, ] diff --git a/platform/account/src/jsonrpc/methods/setProfile.ts b/platform/account/src/jsonrpc/methods/setProfile.ts index 414c423758..7b8ee5ddf2 100644 --- a/platform/account/src/jsonrpc/methods/setProfile.ts +++ b/platform/account/src/jsonrpc/methods/setProfile.ts @@ -34,9 +34,7 @@ export const setProfileMethod = async ({ ) const edge = ctx.edges - // Don't need to await it - // Fire and go - edge.updateNode.mutate({ urnOfNode: enhancedUrn }) + await edge.updateNode.mutate({ urnOfNode: enhancedUrn }) } return }