fix
This commit is contained in:
parent
eb1e797354
commit
79b652d628
9 changed files with 32 additions and 32 deletions
|
|
@ -103,7 +103,6 @@ export class ProfileAddressEmployeeTempController extends Controller {
|
|||
*/
|
||||
@Get("history/user")
|
||||
public async getProfileAddressHistoryUser(@Request() request: RequestWithUser) {
|
||||
// await new permission().PermissionGet(request, "SYS_REGISTRY_TEMP");//ไม่แน่ใจTEMP
|
||||
const profile = await this.profileEmployeeRepo.findOneBy({ keycloak: request.user.sub });
|
||||
if (!profile) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue