|
@@ -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)
|