mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 18:15:53 +00:00
11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TOrgBotDALFactory = ReturnType<typeof orgBotDALFactory>;
|
|
|
|
export const orgBotDALFactory = (db: TDbClient) => {
|
|
const orgBotOrm = ormify(db, TableName.OrgBot);
|
|
return orgBotOrm;
|
|
};
|