We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93cfcc4 commit 74bd09fCopy full SHA for 74bd09f
internal/repository/user.go
@@ -3,7 +3,7 @@ package repository
3
import "github.com/pagu-project/pagu/internal/entity"
4
5
func (db *Database) AddUser(u *entity.User) error {
6
- tx := db.gormDB.Debug().Create(u)
+ tx := db.gormDB.Create(u)
7
if tx.Error != nil {
8
return WriteError{
9
Message: tx.Error.Error(),
@@ -27,7 +27,7 @@ func (db *Database) HasUser(id uint) bool {
27
28
func (db *Database) GetUserByPlatformID(appID entity.PlatformID, callerID string) (*entity.User, error) {
29
var user *entity.User
30
- tx := db.gormDB.Debug().Model(&entity.User{}).
+ tx := db.gormDB.Model(&entity.User{}).
31
Where("platform_id = ?", appID).
32
Where("platform_user_id = ?", callerID).
33
First(&user)
0 commit comments