Skip to content

Commit

Permalink
Fix wrong values
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRamosC committed Jun 12, 2024
1 parent 686562d commit f847cdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions projects/js-packages/explat/src/assignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* External dependencies
*/
import { stringify } from 'qs';
import { version as EXPLAT_VERSION } from '../package.json';

const EXPLAT_API_VERSION = '0.1.0';

export const fetchExperimentAssignment = async ( {
experimentName,
Expand All @@ -18,6 +19,6 @@ export const fetchExperimentAssignment = async ( {

/* @todo Jetpack: dynamically replace "wpcom" with relevant platform and point to Jetpack API*/
return await fetch(
`https://public-api.wordpress.com/wpcom/v2/experiments/${ EXPLAT_VERSION }/assignments/wpcom?${ params }`
`https://public-api.wordpress.com/wpcom/v2/experiments/${ EXPLAT_API_VERSION }/assignments/jetpack?${ params }`
);
};
2 changes: 1 addition & 1 deletion projects/js-packages/explat/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const logError = ( error: Record< string, string > & { message: string }
...properties,
context: 'explat',
/* @todo Jetpack: dynamically replace "wpcom" with relevant platform. */
explat_client: 'wpcom',
explat_client: 'jetpack',
},
};

Expand Down

0 comments on commit f847cdb

Please sign in to comment.