แก้ชื่อสิท

This commit is contained in:
JoolsoftAdmin 2024-08-13 10:25:58 +07:00
parent 828dd2a37d
commit ab138c2e04
23 changed files with 77 additions and 67 deletions

View file

@ -149,7 +149,7 @@ export class ProfileFamilyCoupleController extends Controller {
return new HttpSuccess(mapData);
}
@Get("history/{profileId}")
@Example({
status: 200,
@ -220,7 +220,7 @@ export class ProfileFamilyCoupleController extends Controller {
@Request() req: RequestWithUser,
@Body() body: CreateProfileFamilyCouple,
) {
await new permission().PermissionCreate(req,"SYS_REGISTRY");
await new permission().PermissionCreate(req, "SYS_REGISTRY_OFFICER");
const familyCouple = Object.assign(new ProfileFamilyCouple(), body);
if (!familyCouple) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
@ -267,7 +267,7 @@ export class ProfileFamilyCoupleController extends Controller {
@Body() body: UpdateProfileFamilyCouple,
@Path() profileId: string,
) {
await new permission().PermissionUpdate(req,"SYS_REGISTRY");
await new permission().PermissionUpdate(req, "SYS_REGISTRY_OFFICER");
const familyCouple = await this.ProfileFamilyCouple.findOneBy({ profileId: profileId });
if (!familyCouple) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");