hel 1 tahun lalu
induk
melakukan
27b564941b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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()
         const bool = await client.stakeSingle()
 
 
         console.log(bool)
         console.log(bool)
-        if (bool == `done`) {
+        if (bool) {
           await DBClient.instance.randomTask.update({
           await DBClient.instance.randomTask.update({
             where: { id: account.id },
             where: { id: account.id },
             data: { task5: 1 },
             data: { task5: 1 },
@@ -108,4 +108,4 @@ async function startCheck(concurrency) {
   })
   })
 }
 }
 
 
-startCheck(100)
+startCheck(50)