hel 1 年之前
父節點
當前提交
27b564941b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)