mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Couple of tweaks.
This commit is contained in:
parent
b36670c999
commit
dee8385e8d
|
@ -13,7 +13,7 @@ protected override void Initialize(RequestContext requestContext)
|
|||
{
|
||||
try
|
||||
{
|
||||
CultureInfo ci = new CultureInfo(cookie.Value);
|
||||
CultureInfo ci = CultureInfo.GetCultureInfo(cookie.Value);
|
||||
CultureInfo.CurrentCulture = ci;
|
||||
CultureInfo.CurrentUICulture = ci;
|
||||
}
|
||||
|
|
|
@ -41,6 +41,14 @@ await _buildCollection.Indexes.CreateOneAsync(Builders<BuildModel>.IndexKeys.Com
|
|||
Name = "_idx_group"
|
||||
});
|
||||
}
|
||||
|
||||
if (!indexes.Any(i => i["name"] == "_idx_legacy"))
|
||||
{
|
||||
await _buildCollection.Indexes.CreateOneAsync(Builders<BuildModel>.IndexKeys.Ascending(b => b.LegacyId), new CreateIndexOptions()
|
||||
{
|
||||
Name = "_idx_legacy"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[DataObjectMethod(DataObjectMethodType.Select, true)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user