Permalink
Browse files

Update LastUpdated date for Packages when aggregating stats.

  • Loading branch information...
1 parent 08cecf6 commit 8b1b77767cd4601d6de7b1f2ab954751186289f8 @jeffhandley jeffhandley committed Sep 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 8b1b777

Please sign in to comment.