Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Dec 23, 2024
1 parent 96846c5 commit c1efe01
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion internal/database/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ func (db *MySQLDatabase) UpdateAccount(ctx context.Context, account model.Accoun
return nil
}


// ListAccounts fetch list of account (without its password) based on submitted options.
func (db *MySQLDatabase) ListAccounts(ctx context.Context, opts ListAccountsOptions) ([]model.Account, error) {
// Create query
Expand Down
1 change: 0 additions & 1 deletion internal/database/pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ func (db *PGDatabase) UpdateAccount(ctx context.Context, account model.Account)
return nil
}


// ListAccounts fetch list of account (without its password) based on submitted options.
func (db *PGDatabase) ListAccounts(ctx context.Context, opts ListAccountsOptions) ([]model.Account, error) {
// Create query
Expand Down
1 change: 0 additions & 1 deletion internal/database/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ func (db *SQLiteDatabase) CreateAccount(ctx context.Context, account model.Accou
return &account, nil
}


// UpdateAccount updates account in database.
func (db *SQLiteDatabase) UpdateAccount(ctx context.Context, account model.Account) error {
if account.ID == 0 {
Expand Down
2 changes: 1 addition & 1 deletion internal/http/routes/api/v1/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func TestUpdateHandler(t *testing.T) {
})

t.Run("Test configure change in database", func(t *testing.T) {
// Get current user config
// Get current user config
user, _, err := deps.Database.GetAccount(ctx, account.ID)
require.NoError(t, err)
require.Equal(t, user.ToDTO().Config, account.Config)
Expand Down

0 comments on commit c1efe01

Please sign in to comment.