Merge branch 'bugfix' into release

This commit is contained in:
xichaoyin 2024-01-06 00:07:59 +08:00
commit ffd8d50463

View File

@ -69,7 +69,7 @@ export default async function (call: ApiCall<ReqSyncBtn, ResSyncBtn>) {
data[key] = {active: false}; data[key] = {active: false};
} else { } else {
let zls = await G.mongodb.collection('scheduler').findOne({type: 'zhanling'}); let zls = await G.mongodb.collection('scheduler').findOne({type: 'zhanling'});
if (!data[key] || data[key].round != zls.round) { if (!data[key] || data[key].round != zls?.round) {
let lastRunTime = zls && zls.lastRunTime? zls.lastRunTime : G.time let lastRunTime = zls && zls.lastRunTime? zls.lastRunTime : G.time
let round = zls && zls.lastRunTime? zls.round : 1 let round = zls && zls.lastRunTime? zls.round : 1
data[key] = {active: true, sTime: lastRunTime, round: round}; data[key] = {active: true, sTime: lastRunTime, round: round};