fix bug: 最大签到数计算错误
This commit is contained in:
parent
3fd2cf6f6b
commit
54c66ac20d
@ -312,7 +312,7 @@ export const AllChains: IChain[] = [
|
|||||||
{
|
{
|
||||||
name: 'opBNB Testnet',
|
name: 'opBNB Testnet',
|
||||||
type: 'Testnet',
|
type: 'Testnet',
|
||||||
rpc: 'https://opbnb-testnet-rpc.bnbchain.org',
|
rpc: 'https://opbnb-testnet.nodereal.io/v1/9a0072da499a4301aec72bb4a5a57a41',
|
||||||
id: 5611,
|
id: 5611,
|
||||||
symbol: 'tBNB',
|
symbol: 'tBNB',
|
||||||
explorerurl: 'https://opbnb-testnet.bscscan.com',
|
explorerurl: 'https://opbnb-testnet.bscscan.com',
|
||||||
|
@ -48,7 +48,7 @@ export class CheckInClass extends BaseModule {
|
|||||||
}
|
}
|
||||||
const total = await CheckIn.countDocuments({ from: event.from })
|
const total = await CheckIn.countDocuments({ from: event.from })
|
||||||
event.total = total + 1
|
event.total = total + 1
|
||||||
event.maxSeq = Math.max(event.count, event.maxSeq || 1)
|
event.maxSeq = Math.max(event.count, preDayEvent.maxSeq || 1)
|
||||||
try {
|
try {
|
||||||
await CheckIn.insertOrUpdate({ from: event.from, dateTag: event.dateTag }, event)
|
await CheckIn.insertOrUpdate({ from: event.from, dateTag: event.dateTag }, event)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user