Merge pull request #833 from cvium/fix_localization

Add await to GetCountries in LocalizationService
pull/834/head
Joshua M. Boniface 6 years ago committed by GitHub
commit 5b0bd88892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

Loading…
Cancel
Save