Joystream Stats 3 years ago
parent
commit
d8ae762c30

+ 1 - 1
scripts/joystreamtelegrambot/src/bot.ts

@@ -216,12 +216,12 @@ const main = async () => {
       blocks = [];
     }
 
+    // announcements
     if (timestamp > lastCouncilHeartbeat + councilStatusHeartbeat) {
       announce.councilStatus(api, block, sendMessage, discordChannels.council);
       lastCouncilHeartbeat = block.timestamp;
     }
 
-    // announcements
     if (opts.council && block.id > lastBlock.id) {
       council = await announce.council(
         api,

+ 2 - 3
scripts/joystreamtelegrambot/src/lib/getters.ts

@@ -76,9 +76,8 @@ export const activeProposals = async (
 };
 
 const getProposalType = async (api: Api, id: number): Promise<string> => {
-  const details: ProposalDetailsOf = await api.query.proposalsCodex.proposalDetailsByProposalId(
-    id
-  );
+  const details: ProposalDetailsOf =
+    await api.query.proposalsCodex.proposalDetailsByProposalId(id);
   const [type]: string[] = Object.getOwnPropertyNames(details.toJSON());
   return type;
 };