diff options
Diffstat (limited to 'bridge/core/config.go')
-rw-r--r-- | bridge/core/config.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bridge/core/config.go b/bridge/core/config.go index 45f1afa4..ed079eb8 100644 --- a/bridge/core/config.go +++ b/bridge/core/config.go @@ -5,12 +5,13 @@ import ( "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/entities/identity" + "github.com/MichaelMure/git-bug/entity" ) func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error { // if no user exist with the given login metadata - _, err := repo.ResolveIdentityImmutableMetadata(metaKey, login) - if err != nil && err != identity.ErrIdentityNotExist { + _, err := repo.Identities().ResolveIdentityImmutableMetadata(metaKey, login) + if err != nil && !entity.IsErrNotFound(err) { // real error return err } @@ -33,7 +34,7 @@ func FinishConfig(repo *cache.RepoCache, metaKey string, login string) error { } // otherwise create a user with that metadata - i, err := repo.NewIdentityFromGitUserRaw(map[string]string{ + i, err := repo.Identities().NewFromGitUserRaw(map[string]string{ metaKey: login, }) if err != nil { |