import cloud from '@lafjs/cloud' const db = cloud.database(); export default async function (ctx: FunctionContext) { await db.collection("sRank").where({ _id: "691093093cf0c4532ba4fd9c" }).update({total:null}); await db.collection("sRank").where({ _id: "691097ac3cf0c4532ba4fd9e" }).update({ total: null }); await db.collection("users").update({ levelTJ: 0, addLevel:0},{multi:true}); await db.collection("usersAd").update({ levelTJ: 0, addLevel:0}, { multi: true }); await db.collection("sRank").where({ _id: "691093093cf0c4532ba4fd9c" }).update({ total: null }); await db.collection("sRank").where({ _id: "691097ac3cf0c4532ba4fd9e" }).update({ total: null }); await db.collection("users").update({ levelTJ: 0, addLevel: 0 }, { multi: true }); await db.collection("usersAd").update({ levelTJ: 0, addLevel: 0 }, { multi: true }); cloud.shared.set("iosOrder",{}); return { data: 'hi, laf' } }