This commit is contained in:
2018-11-12 18:40:21 +00:00
parent e101a6eb80
commit 719b8c4eeb
2 changed files with 5 additions and 4 deletions

View File

@@ -409,7 +409,7 @@ namespace AyaNova
AyaNova.Core.License.Initialize(apiServerState, dbContext, _log); AyaNova.Core.License.Initialize(apiServerState, dbContext, _log);
//Ensure locales are present, not missing any keys and that there is a server default locale that exists //Ensure locales are present, not missing any keys and that there is a server default locale that exists
LocaleBiz lb = new LocaleBiz(dbContext, 1, AuthorizationRoles.OpsAdminFull); LocaleBiz lb = new LocaleBiz(dbContext, 1, ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID, AuthorizationRoles.OpsAdminFull);
lb.ValidateLocales(); lb.ValidateLocales();

View File

@@ -58,8 +58,9 @@ namespace raven_integration
List<string> keys = new List<string>(); List<string> keys = new List<string>();
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" }); keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
dynamic d = new JObject(); dynamic d = new JObject();
d.localeId = 1; //d.localeId = 1;
d.keys = JToken.FromObject(keys); //d.keys = JToken.FromObject(keys);
d = JToken.FromObject(keys);
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString()); ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString());
Util.ValidateDataReturnResponseOk(a); Util.ValidateDataReturnResponseOk(a);