mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 23:00:14 +00:00
feat: completed additional privilege factory
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { TDbClient } from "@app/db";
|
||||
import { TableName } from "@app/db/schemas";
|
||||
import { ormify } from "@app/lib/knex";
|
||||
|
||||
export type TMembershipDALFactory = ReturnType<typeof membershipDALFactory>;
|
||||
|
||||
export const membershipDALFactory = (db: TDbClient) => {
|
||||
const orm = ormify(db, TableName.Membership);
|
||||
return orm;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
import { TMembershipDALFactory } from "./membership-dal";
|
||||
|
||||
type TMembershipServiceFactoryDep = {
|
||||
membershipDAL: TMembershipDALFactory;
|
||||
};
|
||||
|
||||
export type TMembershipServiceFactory = ReturnType<typeof membershipServiceFactory>;
|
||||
|
||||
export const membershipServiceFactory = ({ membershipDAL }: TMembershipServiceFactoryDep) => {
|
||||
return {};
|
||||
};
|
||||
Reference in New Issue
Block a user