UNPKG

@tomei/sso

Version:
19 lines (16 loc) 526 B
import SystemPrivilege from '../../models/system-privilege.entity'; import { RepositoryBase, IRepositoryBase } from '@tomei/general'; export class SystemPrivilegeRepository extends RepositoryBase<SystemPrivilege> implements IRepositoryBase<SystemPrivilege> { constructor() { super(SystemPrivilege); } async delete(systemPrivilegeId: string, dbTransaction?: any) { return await SystemPrivilege.destroy({ where: { SystemPrivilegeId: systemPrivilegeId }, transaction: dbTransaction, }); } }