Skip to content

Commit

Permalink
Merge pull request #76 from show-karma/feat/apecoin-job-criteria-twitter
Browse files Browse the repository at this point in the history
feat: twitter criteria for apecoin role job
  • Loading branch information
Arthh authored Oct 5, 2023
2 parents 3f8ffde + 44b93c7 commit 450fcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/apecoin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async function fetchDelegates(daoName: string, publicAddress?: string) {
WHERE "t1"."daoName" = $1
AND "t2"."period" = '1y'
AND "t1"."discordHandle" IS NOT NULL
AND "u"."twitterHandle" IS NOT NULL
`;

if (publicAddress) {
Expand Down Expand Up @@ -81,7 +82,6 @@ async function delegateHasPermission(delegate, dao) {
delegate.hasPermission = delegate.hasPermission || delegate.trustLevel >= 2;
}

delegate.hasPermission = false;
return delegate;
}

Expand All @@ -104,7 +104,7 @@ async function manageRoles(client: Client, guildId: string, handles: any[], acti
if (member) {
await member.roles[action](role);
console.log(
`Role: ${role.name} | action: ${action} | user: ${member.user.tag} | address: ${handle.publicAddress} | offChain: ${handle.offChainVotesPct} | balance: ${handle.balance} | forumLevel: ${handle.trustLevel} | hasCriterea: ${handle.hasPermission}`
`Role: ${role.name} | action: ${action} | user: ${member.user.tag} | address: ${handle.publicAddress} | offChain: ${handle.offChainVotesPct} | balance: ${handle.balance} | forumLevel: ${handle.trustLevel} | twitter: ${handle.twitterHandle} | hasCriterea: ${handle.hasPermission}`
);
sucessHandles.push(handle);
}
Expand Down

0 comments on commit 450fcf8

Please sign in to comment.