mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 16:01:44 +00:00
feat(secret-reminders): rework secret reminders logic
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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.RemindersRecipients);
|
||||
|
||||
return { ...reminderRecipientOrm };
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
export type TReminderRecipient = {
|
||||
id: string;
|
||||
reminderId: string;
|
||||
userId: string;
|
||||
createdAt: Date;
|
||||
};
|
||||
Reference in New Issue
Block a user