Fix new user create 500 error
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-29 13:42:00 +08:00
parent fabba842ce
commit 0f1c5b1293
3 changed files with 2 additions and 4 deletions

View File

@@ -81,9 +81,6 @@ func (self *User) GetByEmail(ctx context.Context, email *string) (*User, error)
First(&user).Error
if err != nil {
if err == gorm.ErrRecordNotFound {
return nil, nil
}
return nil, err
}