异步查库改为同步插库
This commit is contained in:
xcy 2023-12-22 16:00:23 +08:00
parent aab0951e6d
commit 791dbc5472

View File

@ -134,7 +134,7 @@ export class PushGiftFun {
static async addGift(uid: string, giftid: string, ext_data: { [key: string]: any }) {
let conf = G.gc.tuisonglibao[giftid];
// 更新礼包
G.mongodb.collection("pushgift").updateOne({
await G.mongodb.collection("pushgift").updateOne({
uid: uid, id: giftid
}, {
$set: {