Skip to content

Commit

Permalink
feat(#492): XML title logic refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Jul 11, 2024
1 parent 9250211 commit f5563b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resfulservice/src/controllers/curationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,8 @@ async function generateControlId(requiredFields, user, datasetId) {
sampleIndex = curations.length + 1;
}

// Construct controlId
const controlId = `${citationPrefix}${datasetIndex}_S${sampleIndex}_${authorName}_${publicationYear}.xml`;

return controlId;
// Construct controlId & return
return `${citationPrefix}${datasetIndex}_S${sampleIndex}_${authorName}_${publicationYear}.xml`;
} catch (error) {
const err = new Error(error);
err.functionName = 'generateControlId';
Expand Down

0 comments on commit f5563b2

Please sign in to comment.