diff options
Diffstat (limited to 'routers/api/v1/user/email.go')
-rw-r--r-- | routers/api/v1/user/email.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index fe11954ba7..6a3d525cce 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -22,7 +22,7 @@ func ListEmails(ctx *context.APIContext) { } apiEmails := make([]*api.Email, len(emails)) for i := range emails { - apiEmails[i] = convert.ToApiEmail(emails[i]) + apiEmails[i] = convert.ToEmail(emails[i]) } ctx.JSON(200, &apiEmails) } @@ -54,7 +54,7 @@ func AddEmail(ctx *context.APIContext, form api.CreateEmailOption) { apiEmails := make([]*api.Email, len(emails)) for i := range emails { - apiEmails[i] = convert.ToApiEmail(emails[i]) + apiEmails[i] = convert.ToEmail(emails[i]) } ctx.JSON(201, &apiEmails) } |