mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 05:38:04 +01:00
Change the name of the CSV file argument to avoid upstream naming collisions
This commit is contained in:
@@ -60,8 +60,8 @@ public class MigrateProfilesCommand extends EnvironmentCommand<WhisperServerConf
|
||||
.setDefault(64)
|
||||
.help("The maximum number of concurrent DynamoDB requests");
|
||||
|
||||
subparser.addArgument("-f", "--file")
|
||||
.dest("file")
|
||||
subparser.addArgument("--csv-file")
|
||||
.dest("csvFile")
|
||||
.type(String.class)
|
||||
.required(false)
|
||||
.help("A CSV containing UUID/version pairs to migrate; if not specified, all profiles are migrated");
|
||||
@@ -88,7 +88,7 @@ public class MigrateProfilesCommand extends EnvironmentCommand<WhisperServerConf
|
||||
ProfilesDynamoDb profilesDynamoDb = new ProfilesDynamoDb(dynamoDbClient, dynamoDbAsyncClient,
|
||||
configuration.getDynamoDbTables().getProfiles().getTableName());
|
||||
|
||||
final String csvFile = namespace.getString("file");
|
||||
final String csvFile = namespace.getString("csvFile");
|
||||
|
||||
if (StringUtils.isNotBlank(csvFile)) {
|
||||
migrateFromCsvFile(profiles, profilesDynamoDb, csvFile);
|
||||
|
||||
Reference in New Issue
Block a user