Skip to content

Commit

Permalink
fix(api): No need to return the original object, make the reponse lig…
Browse files Browse the repository at this point in the history
…hter
  • Loading branch information
annelhote committed Nov 20, 2023
1 parent bd8117a commit e1ccc8a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const getBsoWorks = async ({
authors: result._source?.authors ?? [],
datasource: 'bso',
id: result._source?.doi ?? result._source?.hal_id ?? result._source.id,
original: result,
status: 'tobedecided',
type: result._source?.genre_raw ?? result._source.genre,
})));
Expand Down Expand Up @@ -216,7 +215,6 @@ const getOpenAlexPublications = (options, page = '1', previousResponse = []) =>
datasource: 'openalex',
doi: getIdValue(result?.doi),
id: result?.doi ? getIdValue(result.doi) : result.id,
original: result,
status: 'tobedecided',
title: result?.display_name ?? result.title,
type: getTypeFromOpenAlex(result.type),
Expand Down

0 comments on commit e1ccc8a

Please sign in to comment.