import { ApiCall } from "tsrpc";
import { ReqInfoOpen, ResInfoOpen } from "../../shared/protocols/user/PtlInfoOpen";

export default async function (call: ApiCall<ReqInfoOpen, ResInfoOpen>) {
    call.succ((await G.mongodb.collection('playerInfo', 'playerInfo').findOne({ uid: call.uid, type: 'playerInfo' }))?.active || {});
}