diff --git a/internal/database/mysql.go b/internal/database/mysql.go index e8425b3bf..c23e66dde 100644 --- a/internal/database/mysql.go +++ b/internal/database/mysql.go @@ -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 diff --git a/internal/database/pg.go b/internal/database/pg.go index 1745e26d2..544371ff5 100644 --- a/internal/database/pg.go +++ b/internal/database/pg.go @@ -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 diff --git a/internal/database/sqlite.go b/internal/database/sqlite.go index e81085ce0..a4a55ce90 100644 --- a/internal/database/sqlite.go +++ b/internal/database/sqlite.go @@ -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 { diff --git a/internal/http/routes/api/v1/auth_test.go b/internal/http/routes/api/v1/auth_test.go index 1475b62b9..c2ff2a377 100644 --- a/internal/http/routes/api/v1/auth_test.go +++ b/internal/http/routes/api/v1/auth_test.go @@ -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)