zhaoyingbo 6e65581bbf
All checks were successful
Egg CI/CD / build-image (push) Successful in 32s
Egg CI/CD / deploy (push) Successful in 37s
feat: 接入lint 和 husky
2024-07-25 01:48:22 +00:00

15 lines
322 B
TypeScript

import { DB } from "../../types"
import { managePbError } from "../../utils/pbTools"
import pbClient from "../pbClient"
const getOne = (groupId: string) =>
managePbError<DB.MessageGroup>(() =>
pbClient.collection("message_group").getOne(groupId)
)
const messageGroup = {
getOne,
}
export default messageGroup