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