Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
only populate if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dkatzel-ncats committed May 19, 2021
1 parent c0601e1 commit 75ed108
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/gsrs/LoadCvOnStartup.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public class LoadCvOnStartup implements ApplicationRunner {

@Override
public void run(ApplicationArguments args) throws Exception {

//only run if not populated
if(repository.count() >0){
return;
}
System.out.println("RUNNING");
System.out.println("reading property file at path '"+jsonPath + "'");
JsonNode json;
Expand Down

0 comments on commit 75ed108

Please sign in to comment.