diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 9816fcc713..e604c871b2 100644 --- a/models/user.go +++ b/models/user.go @@ -260,7 +260,7 @@ func DeleteUser(ctx context.Context, u *user_model.User) (err error) { } // ***** START: ExternalLoginUser ***** - if err = removeAllAccountLinks(e, u); err != nil { + if err = user_model.RemoveAllAccountLinks(ctx, u); err != nil { return fmt.Errorf("ExternalLoginUser: %v", err) } // ***** END: ExternalLoginUser ***** |