Skip to content

Commit

Permalink
Added default values to avoid needing config file to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 10, 2024
1 parent 1b40f02 commit 0a77636
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GuildWarsPartySearch/Options/BotHistoryDatabaseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

public sealed class BotHistoryDatabaseOptions
{
public string TableName { get; set; } = default!;
public string TableName { get; set; } = "bot_history";
}
2 changes: 1 addition & 1 deletion GuildWarsPartySearch/Options/IpWhitelistOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ namespace GuildWarsPartySearch.Server.Options;
public class IpWhitelistOptions
{
[JsonPropertyName(nameof(Addresses))]
public List<string> Addresses { get; set; } = default!;
public List<string> Addresses { get; set; } = [ "127.0.0.1" ];
}
2 changes: 1 addition & 1 deletion GuildWarsPartySearch/Options/PartySearchDatabaseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

public class PartySearchDatabaseOptions
{
public string TableName { get; set; } = default!;
public string TableName { get; set; } = "party_searches";
}
2 changes: 1 addition & 1 deletion GuildWarsPartySearch/Options/SQLiteDatabaseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ namespace GuildWarsPartySearch.Server.Options;
public class SQLiteDatabaseOptions
{
[JsonPropertyName(nameof(Path))]
public string Path { get; set; } = string.Empty;
public string Path { get; set; } = "db.sqlite";
}

0 comments on commit 0a77636

Please sign in to comment.