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 -3
View File
@@ -1,8 +1,7 @@
package userrepository
import (
"errors"
"fmt"
userdomain "legalgo-BE-go/internal/domain/user"
)
@@ -10,7 +9,7 @@ func (ur *accessor) GetUserByID(id string) (*userdomain.User, error) {
var user userdomain.User
if id == "" {
return nil, errors.New("id is empty")
return nil, fmt.Errorf("id is empty")
}
if err := ur.db.