fix(GODT-3106): Broken import route

https://github.com/ProtonMail/go-proton-api/pull/123
This commit is contained in:
Leander Beernaert
2023-11-06 10:36:27 +01:00
parent 4f0660bb8c
commit 5ff074cc49
3 changed files with 5 additions and 5 deletions

View File

@ -362,8 +362,8 @@ func createContact(ctx context.Context, c *proton.Client, contact, name string,
if err != nil {
return err
}
if res[0].Response.Response.Code != proton.SuccessCode {
return errors.New("APIError " + res[0].Response.Response.Message + " while creating contact")
if res[0].Response.Code != proton.SuccessCode {
return errors.New("APIError " + res[0].Response.Message + " while creating contact")
}
if settings != nil {