diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-06 00:16:39 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-06 00:16:39 -0400 |
commit | 53a6833ab22fb41e909ed8ef50aa9262735818d9 (patch) | |
tree | be9efb2fe0e33938b5cec8b10704bb54c83c0877 /src/SMAPI.Web/Framework/ModRepositories | |
parent | aee42562698ad3e84f781d51e8aa5017a1a589bc (diff) | |
download | SMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.tar.gz SMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.tar.bz2 SMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.zip |
return file versions from Nexus in web API (#532)
Diffstat (limited to 'src/SMAPI.Web/Framework/ModRepositories')
-rw-r--r-- | src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs index 6cac6b8f..4afcda10 100644 --- a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs +++ b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs @@ -43,7 +43,7 @@ namespace StardewModdingAPI.Web.Framework.ModRepositories return new ModInfoModel("Found no mod with this ID."); if (mod.Error != null) return new ModInfoModel(mod.Error); - return new ModInfoModel(name: mod.Name, version: this.NormaliseVersion(mod.Version), url: mod.Url); + return new ModInfoModel(name: mod.Name, version: this.NormaliseVersion(mod.Version), previewVersion: mod.LatestFileVersion?.ToString(), url: mod.Url); } catch (Exception ex) { |