Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Jan 15, 2025
1 parent 9cdc973 commit 54d77a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions src/models/images.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ class Image {
issue: new Issue({
uid: doc.meta_issue_id_s,
}),
pages: Array.isArray(doc.page_nb_is)
? doc.page_nb_is.map(
num =>
new Page({
uid: `${doc.meta_issue_id_s}-p${String(num).padStart(4, '0')}`,
num,
})
)
: [],
pages: (Array.isArray(doc.page_nb_is) ? doc.page_nb_is : []).map(
num =>
new Page({
uid: `${doc.meta_issue_id_s}-p${String(num).padStart(4, '0')}`,
num,
})
),
title: Article.getUncertainField(doc, 'title'),
type: doc.item_type_s,
year: doc.meta_year_i,
Expand Down
2 changes: 1 addition & 1 deletion src/services/search-exporter/search-exporter.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Service {

return client
.run({
task: task,
task,
args: [
// user id
params.user.id,
Expand Down

0 comments on commit 54d77a1

Please sign in to comment.