fix: linter run
All checks were successful
Backend ci / build (pull_request) Successful in 3m57s

This commit is contained in:
d3m0k1d
2026-02-15 16:37:55 +03:00
parent 7f8d8373a9
commit 78623924ef
3 changed files with 10 additions and 6 deletions

View File

@@ -48,7 +48,10 @@ func (p *postRepository) GetAll(ctx context.Context) ([]storage.PostReq, error)
func (p *postRepository) GetByID(ctx context.Context, id int) (storage.PostReq, error) {
var result storage.PostReq
row := p.db.QueryRow("SELECT title, content, CREATED_AT FROM posts WHERE id = ? AND published = 1", id)
row := p.db.QueryRow(
"SELECT title, content, CREATED_AT FROM posts WHERE id = ? AND published = 1",
id,
)
var title string
var content string
var createdAt string