Merge pull request #833 from cvium/fix_localization

Add await to GetCountries in LocalizationService
This commit is contained in:
Joshua M. Boniface 2019-02-06 17:04:11 -05:00 committed by GitHub
commit 5b0bd88892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
using System.Threading.Tasks;
using MediaBrowser.Controller.Net;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Globalization;
@ -81,9 +82,9 @@ namespace MediaBrowser.Api
/// </summary>
/// <param name="request">The request.</param>
/// <returns>System.Object.</returns>
public object Get(GetCountries request)
public async Task<object> Get(GetCountries request)
{
var result = _localization.GetCountries();
var result = await _localization.GetCountries();
return ToOptimizedResult(result);
}