Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update LastUpdated date for Packages when aggregating stats.

  • Loading branch information...
commit 8b1b77767cd4601d6de7b1f2ab954751186289f8 1 parent 08cecf6
@jeffhandley jeffhandley authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Website/Infrastructure/AggregateStatistics.sql
View
1  Website/Infrastructure/AggregateStatistics.sql
@@ -39,6 +39,7 @@ AS
UPDATE Packages
SET Packages.DownloadCount = Packages.DownloadCount + stats.DownloadCount
+ , Packages.LastUpdated = GetUtcDate()
OUTPUT inserted.PackageRegistrationKey INTO @AffectedPackages
FROM Packages
INNER JOIN @DownloadStats stats ON Packages.[Key] = stats.PackageKey
Please sign in to comment.
Something went wrong with that request. Please try again.