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 (