mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
15 lines
291 B
TypeScript
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"
|
|
}
|
|
}
|
|
);
|
|
}; |