trigger linters
Some checks failed
Compile Java Backend / Compile Backend Code (push) Failing after 4m40s
Lint Java Backend / Checkstyle Java Linting (push) Successful in 40s
Lint Dockerfiles / Lint Dockerfiles (push) Successful in 13s
Lint Frontend / Lint HTML, CSS, and JS (push) Successful in 36s

This commit is contained in:
2025-11-10 16:26:26 +01:00
parent 5029c458a1
commit 21f25bd31e

View File

@@ -15,7 +15,7 @@ import java.util.List;
public class MongoConfig { public class MongoConfig {
@Bean @Bean
CommandLineRunner loadPrescriptions(MongoTemplate mongoTemplate, ObjectMapper mapper) { public 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")) {