14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
import { managePb404 } from "../../utils/pbTools";
|
|
import pbClient from "../pbClient";
|
|
|
|
const getOne = (groupId: string) =>
|
|
managePb404(
|
|
async () => await pbClient.collection("message_group").getOne(groupId)
|
|
);
|
|
|
|
const messageGroup = {
|
|
getOne,
|
|
};
|
|
|
|
export default messageGroup;
|