egg_server/db/log/index.ts
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

13 lines
297 B
TypeScript

import { DB } from "../../types"
import { managePbError } from "../../utils/pbTools"
import pbClient from "../pbClient"
const create = (collection: DB.LogCollection, log: DB.Log) =>
managePbError(() => pbClient.collection(collection).create(log))
const log = {
create,
}
export default log