新增活动脚本

This commit is contained in:
dy 2024-01-04 18:25:27 +08:00
parent 28adc88ff0
commit 01f57b347f

View File

@ -7,7 +7,8 @@ class Path {
async fun1(a: any) { async fun1(a: any) {
hdlist.map(i => { hdlist.map(i => {
G.mongodb.collection('hdinfo').updateOne({hdid: i.hdid}, i, {upsert: true}) // @ts-ignore
G.mongodb.collection('hdinfo').updateOne({hdid: i.hdid}, {$set: i}, {upsert: true})
}) })
} }