แก้ค้นหาประวัติ by token
This commit is contained in:
parent
ff0be7af48
commit
24c5cbef55
7 changed files with 8 additions and 8 deletions
|
|
@ -33,7 +33,7 @@ export class ProfileCertificateController extends Controller {
|
|||
private certificateRepo = AppDataSource.getRepository(ProfileCertificate);
|
||||
private certificateHistoryRepo = AppDataSource.getRepository(ProfileCertificateHistory);
|
||||
|
||||
@Get("{profileId}")
|
||||
@Get("user")
|
||||
public async getCertificateUser(@Request() request: { user: Record<string, any> }) {
|
||||
const profile = await this.profileRepo.findOneBy({ keycloak: request.user.sub });
|
||||
if (!profile) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue