rename func for accurate pluralization
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 40s Details

This commit is contained in:
Ladd Hoffman 2024-04-23 12:34:54 -05:00
parent afbfc0c0f2
commit 59f511f51d
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ const fetchAuthorPapers = async (authorId) => {
return responseData.data;
};
const getOrCreateAuthor = async (paper) => Promise.mapSeries(
const getOrCreateAuthors = async (paper) => Promise.mapSeries(
paper.authors.filter((x) => !!x.authorId),
async ({ authorId }) => {
// Check if we already have an account for each author
@ -111,7 +111,7 @@ const getOrCreateAuthor = async (paper) => Promise.mapSeries(
);
const generatePost = async (paper) => {
const authorsInfo = await getOrCreateAuthor(paper);
const authorsInfo = await getOrCreateAuthors(paper);
if (!authorsInfo.length) {
throw new Error('Paper has no authors with id');
}