This commit is contained in:
Paul Schneider 2022-09-25 17:07:56 +01:00
commit 9aa3140a11
10 changed files with 28 additions and 17 deletions

View file

@ -54,7 +54,7 @@ namespace isnd.Data.Packages
public RegistrationLeaf ToLeave(string bid)
{
if (Versions.Count == 0) throw new Exception("NO VERSION");
var v = Versions.First();
var v = Versions.OrderBy(w => w.SystemVersion).First();
RegistrationLeaf leave = new RegistrationLeaf
{
Id = bid + Id + "/" + v.FullString + ".json",