mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 22:29:15 +00:00
12 lines
393 B
TypeScript
12 lines
393 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TReminderRecipientDALFactory = ReturnType<typeof reminderRecipientDALFactory>;
|
|
|
|
export const reminderRecipientDALFactory = (db: TDbClient) => {
|
|
const reminderRecipientOrm = ormify(db, TableName.ReminderRecipient);
|
|
|
|
return { ...reminderRecipientOrm };
|
|
};
|