From 61921ecc08ffa28371838fbe255ce25d7b3c4b54 Mon Sep 17 00:00:00 2001 From: Andy Pack Date: Mon, 10 Oct 2022 21:04:52 +0100 Subject: [PATCH] correctly passing cli arg connection string --- Selector.CLI/Command/SpotHistoryCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Selector.CLI/Command/SpotHistoryCommand.cs b/Selector.CLI/Command/SpotHistoryCommand.cs index 955b8c1..3da573b 100644 --- a/Selector.CLI/Command/SpotHistoryCommand.cs +++ b/Selector.CLI/Command/SpotHistoryCommand.cs @@ -29,16 +29,16 @@ namespace Selector.CLI username.AddAlias("-u"); AddOption(username); - Handler = CommandHandler.Create((string connectionString, string path, string username) => Execute(connectionString, path, username)); + Handler = CommandHandler.Create((string connection, string path, string username) => Execute(connection, path, username)); } - public static int Execute(string connectionString, string path, string username) + public static int Execute(string connection, string path, string username) { var streams = new List(); try { - var context = new CommandContext().WithLogger().WithDb(connectionString).WithSpotify().WithRedis(); + var context = new CommandContext().WithLogger().WithDb(connection).WithSpotify().WithRedis(); var logger = context.Logger.CreateLogger("Scrobble"); using var db = new ApplicationDbContext(context.DatabaseConfig.Options, context.Logger.CreateLogger());