Commit Id and TimerStamps
This commit is contained in:
@ -281,6 +281,8 @@ namespace isnd.Services
|
||||
.SingleAsync(p => p.Id.ToLower() == query.Query);
|
||||
if (scope.Versions.Count==0) return null;
|
||||
string bid = $"{apiBase}{ApiConfig.Registration}";
|
||||
foreach (var version in scope.Versions)
|
||||
version.LatestCommit = dbContext.Commits.Single(c=>c.Id == version.CommitNId);
|
||||
return
|
||||
new PackageRegistration(bid, apiBase, scope);
|
||||
}
|
||||
@ -299,6 +301,11 @@ namespace isnd.Services
|
||||
.ToListAsync()
|
||||
);
|
||||
var pkgs = scope;
|
||||
foreach (var pkg in pkgs)
|
||||
{
|
||||
foreach (var version in pkg.Versions)
|
||||
version.LatestCommit = dbContext.Commits.Single(c=>c.Id == version.CommitNId);
|
||||
}
|
||||
return pkgs.Select(p => new PackageRegistration(bid, apiBase, p));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user