add dpis controller
This commit is contained in:
parent
497decefe4
commit
4852131651
74 changed files with 606 additions and 336 deletions
|
|
@ -55,7 +55,6 @@ export class ProfileOtherController extends Controller {
|
|||
|
||||
@Get("admin/history/{otherId}")
|
||||
public async otherAdminHistory(@Path() otherId: string, @Request() req: RequestWithUser) {
|
||||
|
||||
const _record = await this.otherRepository.findOneBy({ id: otherId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
|
|
@ -68,7 +67,7 @@ export class ProfileOtherController extends Controller {
|
|||
}
|
||||
|
||||
@Get("history/{otherId}")
|
||||
public async otherHistory(@Path() otherId: string,) {
|
||||
public async otherHistory(@Path() otherId: string) {
|
||||
const record = await this.otherHistoryRepository.find({
|
||||
where: { profileOtherId: otherId },
|
||||
order: { createdAt: "DESC" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue