Skip to content

Commit

Permalink
Polish 5 (#3365)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
majora2007 and dependabot[bot] authored Nov 14, 2024
1 parent 7ffb1fb commit 06768bc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions API/Helpers/Converters/ServerSettingConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ public ServerSettingDto Convert(IEnumerable<ServerSetting> source, ServerSetting
destination.FirstInstallVersion = row.Value;
break;
case ServerSettingKey.LicenseKey:
break;
case ServerSettingKey.EnableAuthentication:
case ServerSettingKey.EmailServiceUrl:
case ServerSettingKey.ConvertBookmarkToWebP:
case ServerSettingKey.ConvertCoverToWebP:
default:
throw new ArgumentOutOfRangeException();
break;
}
}

Expand Down
3 changes: 3 additions & 0 deletions API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public static async Task Main(string[] args)
// v0.8.2
await ManualMigrateSwitchToWal.Migrate(context, logger);
// v0.8.4
await ManualMigrateEncodeSettings.Migrate(context, logger);
}
catch (Exception ex)
{
Expand Down
1 change: 0 additions & 1 deletion API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ public void Configure(IApplicationBuilder app, IBackgroundJobClient backgroundJo
await ManualMigrateRemovePeople.Migrate(dataContext, logger);
await MigrateDuplicateDarkTheme.Migrate(dataContext, logger);
await ManualMigrateUnscrobbleBookLibraries.Migrate(dataContext, logger);
await ManualMigrateEncodeSettings.Migrate(dataContext, logger);
// Update the version in the DB after all migrations are run
var installVersion = await unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.InstallVersion);
Expand Down
6 changes: 3 additions & 3 deletions UI/Web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 06768bc

Please sign in to comment.