fix profile_development
This commit is contained in:
parent
057bda967f
commit
7430c3c86f
2 changed files with 4 additions and 4 deletions
|
|
@ -47,7 +47,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
|
|||
|
||||
@Get("{profileId}")
|
||||
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.developmentRepository.find({
|
||||
where: { profileEmployeeId: profileId },
|
||||
});
|
||||
|
|
@ -56,7 +56,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
|
|||
|
||||
@Get("history/{developmentId}")
|
||||
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.developmentHistoryRepository.find({
|
||||
where: { profileDevelopmentId: developmentId },
|
||||
order: { createdAt: "DESC" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue