mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 08:34:52 +00:00
12 lines
345 B
TypeScript
12 lines
345 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TLdapConfigDALFactory = ReturnType<typeof ldapConfigDALFactory>;
|
|
|
|
export const ldapConfigDALFactory = (db: TDbClient) => {
|
|
const ldapCfgOrm = ormify(db, TableName.LdapConfig);
|
|
|
|
return { ...ldapCfgOrm };
|
|
};
|