Skip to content

Conversation

sam-is-content
Copy link
Contributor

the sdk.ids.orgId refers to the current orgId but when we search for app actions, we need to search for the org where the app action lives. This code makes sure we use the correct org - if the app is the marketplace version, use the marketplace apps org, if this is a custom version, use the current orgId.

I was worried about exposing the orgId but Tyler said they are already exposed in our api calls so whatevs

@sam-is-content sam-is-content requested a review from a team as a code owner August 7, 2025 22:49
Copy link

netlify bot commented Aug 7, 2025

Deploy Preview for ecommerce-app-base-components canceled.

Name Link
🔨 Latest commit 71ff4e2
🔍 Latest deploy log https://app.netlify.com/projects/ecommerce-app-base-components/deploys/689641a19a1d0300086a877c

@sam-is-content sam-is-content changed the title fix: klaviyo actions orgIds fix: klaviyo actions orgIds [INTEG-3018] Aug 7, 2025
Copy link
Contributor

@primeinteger primeinteger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with one small type nit

const APP_ORGANIZATION_ID = '5EJGHo8tYJcjnEhYWDxivp';
const APP_DEFINITION_ID = '2x4lsvuxPAGS2UUHwWVYee';

export const getOrgIdForSdk = (sdk: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sdk param could use a proper type

Suggested change
export const getOrgIdForSdk = (sdk: any) => {
export const getOrgIdForSdk = (sdk: ConfigAppSDK) => {

@sam-is-content sam-is-content merged commit 77a980a into master Aug 8, 2025
17 checks passed
@sam-is-content sam-is-content deleted the klaviyo/fix-orgIds branch August 8, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants