feat: update staff data

This commit is contained in:
ericprd
2025-03-14 12:41:11 +08:00
parent 1297c71200
commit 11bc19360c
31 changed files with 130 additions and 115 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package userrepository
import (
"errors"
"fmt"
userdomain "legalgo-BE-go/internal/domain/user"
)
@@ -9,7 +9,7 @@ func (ur *accessor) GetUserProfile(email string) (*userdomain.UserProfile, error
var user *userdomain.User
if email == "" {
return nil, errors.New("email is empty")
return nil, fmt.Errorf("email is empty")
}
if err := ur.db.