Add await to GetCountries in LocalizationService

This commit is contained in:
Claus Vium 2019-02-06 22:40:49 +01:00
parent 0ef2b46106
commit fcfe02ee73

View File

@ -2,6 +2,7 @@ using MediaBrowser.Controller.Net;
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Globalization;
using MediaBrowser.Model.Services; using MediaBrowser.Model.Services;
using System.Threading.Tasks;
namespace MediaBrowser.Api namespace MediaBrowser.Api
{ {
@ -81,9 +82,9 @@ namespace MediaBrowser.Api
/// </summary> /// </summary>
/// <param name="request">The request.</param> /// <param name="request">The request.</param>
/// <returns>System.Object.</returns> /// <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); return ToOptimizedResult(result);
} }