fix: improvement access data

This commit is contained in:
ericprd
2025-03-14 13:00:12 +08:00
parent 11bc19360c
commit ee8e8e140d
7 changed files with 10 additions and 36 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import (
staffdomain "legalgo-BE-go/internal/domain/staff"
)
func (as *impl) GetProfile(email string) (*staffdomain.StaffProfile, error) {
staff, err := as.staffRepo.GetStaffByEmail(email)
func (as *impl) GetProfile(id string) (*staffdomain.StaffProfile, error) {
staff, err := as.staffRepo.GetStaffByID(id)
if err != nil {
return nil, err
}