no message
This commit is contained in:
parent
edad154826
commit
41b5be3056
1 changed files with 2 additions and 2 deletions
|
|
@ -577,7 +577,7 @@ export class ProfileEmployeeController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Post()
|
@Post()
|
||||||
async createProfile(@Body() body: CreateProfileEmployee, @Request() request: RequestWithUser) {
|
async createProfile(@Body() body: CreateProfileEmployee, @Request() request: RequestWithUser) {
|
||||||
await new permission().PermissionCreate(request, "SYS_REGISTRY_EMP");
|
await new permission().PermissionCreate(request, "SYS_REGISTRY_TEMP");
|
||||||
if (await this.profileRepo.findOneBy({ citizenId: body.citizenId })) {
|
if (await this.profileRepo.findOneBy({ citizenId: body.citizenId })) {
|
||||||
throw new HttpError(
|
throw new HttpError(
|
||||||
HttpStatus.INTERNAL_SERVER_ERROR,
|
HttpStatus.INTERNAL_SERVER_ERROR,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue