From 0916bf73707d924ebc44642c589de58db2324f1f Mon Sep 17 00:00:00 2001
From: shenzhimin <zhimin.shen@yoho.cn>
Date: Thu, 13 Apr 2017 18:01:49 +0800
Subject: [PATCH] 只检查pc和wap站

---
 apps/web/actions/checkcode.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/web/actions/checkcode.js b/apps/web/actions/checkcode.js
index 5a9d814..5287330 100644
--- a/apps/web/actions/checkcode.js
+++ b/apps/web/actions/checkcode.js
@@ -89,6 +89,7 @@ router.post('/exec', async(ctx) => {
 module.exports = {
     router,
     async check() {
+        let names = ['yohobuywap-node', 'yohobuy-node']; // 只检查pc 和wap站
         let rule = new schedule.RecurrenceRule();
         
         rule.dayOfWeek = [0, new schedule.Range(1, 6)];  
@@ -102,7 +103,7 @@ module.exports = {
             }
 
             projects.forEach(async(p) => {
-                if (p.name !== 'yohobuywap-node') { // todo 暂时只检查wap站
+                if (names.indexOf(p.name) === -1) {
                     return;
                 }
                 if (!running[p.name]) {
--
libgit2 0.24.0