summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-07 00:55:10 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:47:25 -0400
commita731f5ea9a75aad682c261d747a5d9c71b3d2773 (patch)
tree78d7a737e482e6c5acf455254fc8a601f9018f29
parent2b3f0e740bc09630e881c9967e5ad53d66384094 (diff)
downloadSMAPI-a731f5ea9a75aad682c261d747a5d9c71b3d2773.tar.gz
SMAPI-a731f5ea9a75aad682c261d747a5d9c71b3d2773.tar.bz2
SMAPI-a731f5ea9a75aad682c261d747a5d9c71b3d2773.zip
use better index type (#651)
-rw-r--r--docs/technical/web.md3
-rw-r--r--src/SMAPI.Web/Framework/Caching/Wiki/WikiCacheRepository.cs2
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/technical/web.md b/docs/technical/web.md
index f1cb755b..50799e00 100644
--- a/docs/technical/web.md
+++ b/docs/technical/web.md
@@ -127,5 +127,4 @@ Initial setup:
To deploy updates:
1. Deploy the web project using [AWS Toolkit for Visual Studio](https://aws.amazon.com/visualstudio/).
-2. If the MongoDB schema changed, delete the collections in the MongoDB database. (They'll be
- recreated automatically.)
+2. If the MongoDB schema changed, delete the MongoDB database. (It'll be recreated automatically.)
diff --git a/src/SMAPI.Web/Framework/Caching/Wiki/WikiCacheRepository.cs b/src/SMAPI.Web/Framework/Caching/Wiki/WikiCacheRepository.cs
index 5b907462..1ae9d38f 100644
--- a/src/SMAPI.Web/Framework/Caching/Wiki/WikiCacheRepository.cs
+++ b/src/SMAPI.Web/Framework/Caching/Wiki/WikiCacheRepository.cs
@@ -32,7 +32,7 @@ namespace StardewModdingAPI.Web.Framework.Caching.Wiki
this.WikiMods = database.GetCollection<CachedWikiMod>("wiki-mods");
// add indexes if needed
- this.WikiMods.Indexes.CreateOne(new CreateIndexModel<CachedWikiMod>(Builders<CachedWikiMod>.IndexKeys.Text(p => p.ID)));
+ this.WikiMods.Indexes.CreateOne(new CreateIndexModel<CachedWikiMod>(Builders<CachedWikiMod>.IndexKeys.Ascending(p => p.ID)));
}
/// <summary>Get the cached wiki metadata.</summary>