trigger linters
Some checks failed
Some checks failed
This commit is contained in:
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
public class MongoConfig {
|
||||
|
||||
@Bean
|
||||
public CommandLineRunner loadPrescriptions(MongoTemplate mongoTemplate, ObjectMapper mapper) {
|
||||
CommandLineRunner loadPrescriptions(MongoTemplate mongoTemplate, ObjectMapper mapper) {
|
||||
return args -> {
|
||||
if (mongoTemplate.getCollection("prescriptions").countDocuments() == 0) {
|
||||
try (InputStream is = getClass().getResourceAsStream("/documents/prescriptions.json")) {
|
||||
|
||||
Reference in New Issue
Block a user