plugins/popn-hello@asphyxia/handler/webui.ts
2020-11-27 04:12:29 +09:00

15 lines
291 B
TypeScript

import { Profile } from "../models/profile";
export const setUnlockState = async (data: {
refid: string;
unlock_all: string;
}) => {
await DB.Update<Profile>(
data.refid,
{ collection: 'profile' },
{ $set: {
unlockAll: data.unlock_all == "on"
}
}
);
};