hel 1 year ago
parent
commit
27b564941b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/onchain/randomTask.ts

+ 2 - 2
src/onchain/randomTask.ts

@@ -81,7 +81,7 @@ async function startCheck(concurrency) {
         const bool = await client.stakeSingle()
 
         console.log(bool)
-        if (bool == `done`) {
+        if (bool) {
           await DBClient.instance.randomTask.update({
             where: { id: account.id },
             data: { task5: 1 },
@@ -108,4 +108,4 @@ async function startCheck(concurrency) {
   })
 }
 
-startCheck(100)
+startCheck(50)