@tomei/sso
Version:
Tomei SSO Package
24 lines (21 loc) • 618 B
text/typescript
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,
});
}
}