Skip to content

Commit

Permalink
Processed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Nov 21, 2023
1 parent eab64b9 commit e1b73c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/services/graphql.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function preparePdpCall(
const parsedVerseRef = extractVerseRef(verseRef);
const existingPdp = paratextProjectMap.get(projectId);
if (existingPdp) return { pdp: existingPdp, verseRef: parsedVerseRef };
const pdp = await get<'ParatextStandard'>('ParatextStandard', projectId);
const pdp = await get('ParatextStandard', projectId);
paratextProjectMap.set(projectId, pdp);
return { pdp, verseRef: parsedVerseRef };
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/services/project-data-provider.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function get<ProjectType extends ProjectTypes>(
const { projectType: projectTypeFromMetadata } = metadata;
if (projectType && projectType !== projectTypeFromMetadata)
logger.warn(
`Project type for project ${projectId} is ${projectTypeFromMetadata}, but the 'get' function on the ProjectDataProvider was run with mismatching projectType ${projectType}. This could cause issues`,
`Project type for project ${projectId} is ${projectTypeFromMetadata}, but 'papi.projectDataProviders.get' was run with mismatching projectType ${projectType}. This could cause issues`,
);
const pdpFactoryId: string = getProjectDataProviderFactoryId(projectTypeFromMetadata);
const pdpFactory = await networkObjectService.get<ProjectDataProviderFactory<ProjectType>>(
Expand Down

0 comments on commit e1b73c1

Please sign in to comment.