rename func for accurate pluralization
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 40s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 40s
Details
This commit is contained in:
parent
afbfc0c0f2
commit
59f511f51d
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue