11 lines
542 B
TypeScript
11 lines
542 B
TypeScript
import cloud from '@lafjs/cloud'
|
|
const db = cloud.database();
|
|
export default async function (ctx: FunctionContext) {
|
|
await db.collection("sRank").where({ _id: process.env.SRANK_ID }).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: process.env.SRANK_ID }).update({ total: null });
|
|
cloud.shared.set("iosOrder", {});
|
|
return { data: 'hi, laf' }
|
|
}
|