mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-24 22:08:08 +01:00
Disable FAIL_ON_UNKNOWN_PROPERTIES for directory command.
// FREEBIE
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.whispersystems.textsecuregcm.workers;
|
||||
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
import org.skife.jdbi.v2.DBI;
|
||||
import org.slf4j.Logger;
|
||||
@@ -60,6 +61,8 @@ public class DirectoryCommand extends EnvironmentCommand<WhisperServerConfigurat
|
||||
throws Exception
|
||||
{
|
||||
try {
|
||||
environment.getObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
|
||||
DataSourceFactory dbConfig = configuration.getDataSourceFactory();
|
||||
DBI dbi = new DBI(dbConfig.getUrl(), dbConfig.getUser(), dbConfig.getPassword());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user