This commit is contained in:
GoXLR 2022-10-19 19:30:44 +02:00
parent 28213c703e
commit 87675fad10
No known key found for this signature in database
GPG Key ID: 5B163CA341BAA2EA
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ network:
rootPermission: minehq rootPermission: minehq
http: http:
port: 80 port: 81
keystoreFile: keystoreFile:
keystorePassword: keystorePassword:

View File

@ -35,6 +35,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import java.time.Instant; import java.time.Instant;
import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import fr.javatic.mongo.jacksonCodec.JacksonCodecProvider; import fr.javatic.mongo.jacksonCodec.JacksonCodecProvider;
@ -63,7 +64,7 @@ public class MongoConfig {
.build() .build()
); );
MongoDatabase database = mongoClient.getDatabase(connStr.getDatabase()); MongoDatabase database = mongoClient.getDatabase(Objects.requireNonNull(connStr.getDatabase()));
database.getCollection("auditLog").createIndexes(ImmutableList.of( database.getCollection("auditLog").createIndexes(ImmutableList.of(
new IndexModel(new Document("user", 1)), new IndexModel(new Document("user", 1)),