Skip to content

Commit

Permalink
Rename versionedDoi to preprintVersionedDoi for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Dec 9, 2024
1 parent 6c7b06f commit e28243b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/manuscriptData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const prepareManuscriptStructure = async (

const version = async (
versionId: string,
versionedDoi: string,
preprintVersionedDoi: string,
date: Date,
versionIdentifier: string,
versionEvaluationSummary: string,
Expand All @@ -116,8 +116,8 @@ const prepareManuscriptStructure = async (
versionAuthorResponse?: string,
versionAuthorResponseDate?: Date,
) => {
const [preprintDoi, preprintVersionIdentifier] = versionedDoi.split('v');
const results = await bioxriv(versionedDoi);
const [preprintDoi, preprintVersionIdentifier] = preprintVersionedDoi.split('v');
const results = await bioxriv(preprintVersionedDoi);
const content = results.map((result) => result.content);

return {
Expand All @@ -131,7 +131,7 @@ const prepareManuscriptStructure = async (
...(results.length > 0 ? { publishedDate: formatDate(results[0].date) } : {}),
versionIdentifier: preprintVersionIdentifier,
content,
url: `https://www.biorxiv.org/content/${versionedDoi}`,
url: `https://www.biorxiv.org/content/${preprintVersionedDoi}`,
},
license: 'http://creativecommons.org/licenses/by/4.0/',
peerReview: {
Expand Down

0 comments on commit e28243b

Please sign in to comment.