mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 02:51:51 +00:00
12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TTotpConfigDALFactory = ReturnType<typeof totpConfigDALFactory>;
|
|
|
|
export const totpConfigDALFactory = (db: TDbClient) => {
|
|
const totpConfigDal = ormify(db, TableName.TotpConfig);
|
|
|
|
return totpConfigDal;
|
|
};
|