Files
infisical/backend/src/ee/services/github-org-sync/github-org-sync-dal.ts
T
2025-04-28 19:48:56 +05:30

11 lines
341 B
TypeScript

import { TDbClient } from "@app/db";
import { TableName } from "@app/db/schemas";
import { ormify } from "@app/lib/knex";
export type TGithubOrgSyncDALFactory = ReturnType<typeof githubOrgSyncDALFactory>;
export const githubOrgSyncDALFactory = (db: TDbClient) => {
const orm = ormify(db, TableName.GithubOrgSyncConfig);
return orm;
};