lrf 2 år sedan
förälder
incheckning
7312a4df49
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/service/matchTeamGroup.js

+ 1 - 1
app/service/matchTeamGroup.js

@@ -193,7 +193,7 @@ class MatchTeamGroupService extends CrudService {
    */
    */
   async canOpera(match_id) {
   async canOpera(match_id) {
     const num = await this.matchModel.count({ _id: match_id, status: [ '1', '2' ] });
     const num = await this.matchModel.count({ _id: match_id, status: [ '1', '2' ] });
-    return num <= 0;
+    return num > 0;
 
 
   }
   }
 }
 }