Skip to content

Commit

Permalink
fix: don't await sim names and titles
Browse files Browse the repository at this point in the history
For #361.
  • Loading branch information
liammulh committed Feb 8, 2023
1 parent 114d8b1 commit 1be4f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/translationApi/getReplacementStringObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getReplacementStringObject = async ( stringKeysWithRepoName, translation )
// For context on this, see https://github.com/phetsims/rosetta/issues/360 and
// https://github.com/phetsims/rosetta/issues/361.
const simMetadata = await getSimMetadata();
const simNames = Object.keys( await getSimNamesAndTitles( simMetadata, 'true' ) );
const simNames = Object.keys( getSimNamesAndTitles( simMetadata, 'true' ) );

for ( const stringKeyWithRepoName of Object.keys( stringKeysWithRepoName ) ) {
const repoName = getRepoNameFromStringKeyWithRepoName( stringKeyWithRepoName );
Expand Down

0 comments on commit 1be4f37

Please sign in to comment.