no message

This commit is contained in:
AdisakKanthawilang 2024-08-26 16:07:43 +07:00
parent 877a70ef3d
commit d1cd27287c

View file

@ -49,7 +49,10 @@ export class ProfileSalaryEmployeeController extends Controller {
@Get("{profileId}") @Get("{profileId}")
public async getSalaryEmployee(@Path() profileId: string, @Request() req: RequestWithUser) { public async getSalaryEmployee(@Path() profileId: string, @Request() req: RequestWithUser) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileId); const _record = await this.salaryRepo.findOneBy({ id: profileId });
if (_record) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileId);
}
const record = await this.salaryRepo.find({ const record = await this.salaryRepo.find({
where: { profileEmployeeId: profileId }, where: { profileEmployeeId: profileId },
order: { order: "ASC" }, order: { order: "ASC" },