mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
11 lines
341 B
TypeScript
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;
|
|
};
|