소스 검색

Fix proposal logic

traumschule 4 년 전
부모
커밋
623590c75e
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      community-contributions/joystreamtelegrambot/src/lib/announcements.ts

+ 1 - 3
community-contributions/joystreamtelegrambot/src/lib/announcements.ts

@@ -163,14 +163,12 @@ const processActive = async (
     let label: string = result;
     if (result === "Approved") {
       const executed = parameters.gracePeriod.toNumber() > 0 ? false : true;
-      label = executed ? "Finalized and Executed" : "Failed to be Executed";
+      label = executed ? "Finalized" : "Finalized and Executed";
     }
     msg = `Proposal ${id} <b>${label}</b> at block ${finalizedAt}.\r\n${message}`;
     sendMessage(msg);
     return true;
   } else return processPending(id, details, sendMessage);
-  sendMessage(msg);
-  return false;
 };
 
 const processPending = async (