fuyu 4 年 前
コミット
702e1ba0e7
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/service/log.js

+ 3 - 3
src/service/log.js

@@ -2,7 +2,7 @@
  * @Author: fuyu
  * @Date: 2021-03-23 16:25:59
  * @LastEditors: fuyu
- * @LastEditTime: 2021-03-28 22:22:39
+ * @LastEditTime: 2021-03-28 22:24:17
  * @FilePath: /sql_merge/src/service/log.js
  */
 const fs = require('fs')
@@ -10,8 +10,8 @@ const path = require('path');
 const rootPath = path.join(__dirname, '..', '..', 'logs')
 import {getNowDay, getNowTime} from './time'
 export async function logSum(institution_id, count) {
-  if(typeof institution_id !== 'string') {
-    return
+  if(institution_id instanceof Array) {
+    institution_id = 'all'
   }
   const dirPath = path.join(rootPath, 'sum')
   checkPath(dirPath)