UNPKG

@tomei/sso

Version:
24 lines (21 loc) 618 B
import GroupReportingUserModel from '../../models/group-reporting-user.entity'; import { RepositoryBase, IRepositoryBase } from '@tomei/general'; export class GroupReportingUserRepository extends RepositoryBase<GroupReportingUserModel> implements IRepositoryBase<GroupReportingUserModel> { constructor() { super(GroupReportingUserModel); } async destroy( groupReportingUserId: number, dbTransaction: any, ): Promise<void> { await GroupReportingUserModel.destroy({ where: { GroupReportingUserId: groupReportingUserId, }, transaction: dbTransaction, }); } }