Merge branch 'bugfix' into dev
This commit is contained in:
commit
afe6ddc20b
@ -19,7 +19,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
|
|||||||
if (!db) {
|
if (!db) {
|
||||||
await G.mongodb.cEvent(_dbType).updateOne(
|
await G.mongodb.cEvent(_dbType).updateOne(
|
||||||
{uid: call.uid, type: _dbType},
|
{uid: call.uid, type: _dbType},
|
||||||
{$set: {sTime: sTime, recIndex: []}},
|
{$set: {sTime: sTime, recIndex: [], round: 0}},
|
||||||
{upsert: true}
|
{upsert: true}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -33,6 +33,6 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
|
|||||||
recIndex: db?.recIndex || [],
|
recIndex: db?.recIndex || [],
|
||||||
payNum: payNum,
|
payNum: payNum,
|
||||||
hdinfo: _hdinfo,
|
hdinfo: _hdinfo,
|
||||||
round: db.round || 0
|
round: db?.round || 0
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user