avoid Hangfire connection errors on startup (#651)

This commit is contained in:
Jesse Plamondon-Willard 2019-07-19 16:51:50 -04:00
parent 1b807edd00
commit 450cfc11c2
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ namespace StardewModdingAPI.Web
.UseRecommendedSerializerSettings()
.UseMongoStorage(mongoConfig.GetConnectionString(), $"{mongoConfig.Database}-hangfire", new MongoStorageOptions
{
MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop)
MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop),
CheckConnection = false // error on startup takes down entire process
});
});