แก้api ลูกจ้างประจำ

This commit is contained in:
JoolsoftAdmin 2024-08-13 11:03:42 +07:00
parent ab138c2e04
commit 23e5d4f7fe
44 changed files with 7960 additions and 79 deletions

View file

@ -54,7 +54,7 @@ export class ProfileAvatarEmployeeController extends Controller {
@Request() req: RequestWithUser,
@Body() body: CreateProfileEmployeeAvatar,
) {
await new permission().PermissionCreate(req,"SYS_REGISTRY_EMP");
await new permission().PermissionCreate(req, "SYS_REGISTRY_EMP");
const profile = await this.profileRepository.findOne({
where: { id: body.profileEmployeeId },
});
@ -106,7 +106,7 @@ export class ProfileAvatarEmployeeController extends Controller {
@Delete("{avatarId}")
public async deleteAvatarEmployee(@Path() avatarId: string, @Request() req: RequestWithUser) {
await new permission().PermissionDelete(req,"SYS_REGISTRY_EMP");
await new permission().PermissionDelete(req, "SYS_REGISTRY_EMP");
const result = await this.avatarRepository.delete({ id: avatarId });
if (result.affected == undefined || result.affected <= 0) {