fix(router): change route declaration
This commit is contained in:
@@ -3,6 +3,7 @@ package account
|
||||
import (
|
||||
"nos-comptes/internal/storage/dao"
|
||||
"nos-comptes/internal/storage/model"
|
||||
"nos-comptes/internal/utils"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
@@ -11,6 +12,7 @@ type Service struct {
|
||||
|
||||
func (s *Service) GetAllAccountOfUser(userId string) ([]*Account, error) {
|
||||
accounts, err := s.db.GetAllAccountOfUser(userId)
|
||||
utils.GetLogger().Warn(err)
|
||||
if e, ok := err.(*dao.Error); ok {
|
||||
switch {
|
||||
case e.Type == dao.ErrTypeNotFound:
|
||||
|
||||
Reference in New Issue
Block a user