This commit is contained in:
728
2023-06-02 23:02:27 +08:00
parent f7e76342d4
commit 21f5aca3ee

View File

@ -30,7 +30,11 @@ export async function pre_usr(
const utc = Date.now()
await Promise.all([
act_u(pa.actid, { $set: { exp: utc } }),
rec_c(coll.fund, { _id: { uid, aid: a.aid, utc }, fund: 0, msg: a.msg }),
rec_c(coll.fund, {
_id: { uid, aid: a.aid, utc }, fund: 0, msg: a.msg,
...a.rd ? { rd: a.rd } : {},
...a.unit ? { unit: a.unit } : {},
}),
])
return uid
} case "nbr": {