浏览代码

Add missing variable

Jordi Boggiano 6 年之前
父节点
当前提交
347231d324
共有 1 个文件被更改,包括 2 次插入0 次删除
  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');