Browse Source

Add missing variable

Jordi Boggiano 6 năm trước cách đây
mục cha
commit
347231d324
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Packagist/WebBundle/Command/CompileStatsCommand.php

+ 2 - 0
src/Packagist/WebBundle/Command/CompileStatsCommand.php

@@ -49,6 +49,8 @@ class CompileStatsCommand extends ContainerAwareCommand
         $conn = $doctrine->getManager()->getConnection();
         $this->redis = $redis = $this->getContainer()->get('snc_redis.default');
 
+        $yesterday = new \DateTime('yesterday 00:00:00');
+
         // fetch existing ids
         $doctrine = $this->getContainer()->get('doctrine');
         $packages = $conn->fetchAll('SELECT id FROM package ORDER BY id ASC');