fix(router): change route declaration

This commit is contained in:
2021-11-04 02:04:19 +01:00
parent a25fd2d265
commit 2676b09728
2 changed files with 16 additions and 19 deletions

View File

@@ -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: