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

@ -103,7 +103,7 @@ namespace isnd.Controllers
Id = pkgid,
Description = pkgdesc,
OwnerId = apikey.UserId,
LatestVersion = commit
LatestVersion = commit,
};
dbContext.Packages.Add(pkg);
}
@ -143,6 +143,7 @@ namespace isnd.Controllers
foreach (var v in pkgvers.ToArray())
dbContext.PackageVersions.Remove(v);
}
// FIXME default type or null
if (types==null || types.Count==0)
dbContext.PackageVersions.Add
@ -152,6 +153,7 @@ namespace isnd.Controllers
Major = version.Major,
Minor = version.Minor,
Patch = version.Patch,
Revision = version.Revision,
IsPrerelease = version.IsPrerelease,
FullString = version.ToFullString(),
Type = null,