Skip to content

Commit

Permalink
fix: postgresql 数据库删除
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 26, 2024
1 parent c2aa4a4 commit 52587e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/data/database_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (r databaseUserRepo) Delete(id uint) error {
if err != nil {
return err
}
_ = postgres.DatabaseDrop(user.Username)
_ = postgres.UserDrop(user.Username)
}

return app.Orm.Where("id = ?", id).Delete(&biz.DatabaseUser{}).Error
Expand Down

0 comments on commit 52587e9

Please sign in to comment.