Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
cd64018d
Commit
cd64018d
authored
Mar 05, 2022
by
Matija Obreza
Browse files
Institute updated: Recount accessions after updating from WIEWS
parent
8f66d824
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/worker/InstituteUpdater.java
View file @
cd64018d
...
...
@@ -90,6 +90,9 @@ public class InstituteUpdater {
@Autowired
private
TaskExecutor
taskExecutor
;
@Autowired
private
AccessionCounter
accessionCounter
;
private
static
final
int
BATCH_SIZE
=
50
;
/**
...
...
@@ -226,6 +229,7 @@ public class InstituteUpdater {
if
(
toSave
.
size
()
>
0
)
{
LOG
.
info
(
"Updating FaoInstitutes: {}"
,
toSave
.
size
());
instituteService
.
update
(
toSave
);
toSave
.
forEach
(
accessionCounter:
:
recountInstitute
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment