Skip to content

Commit

Permalink
cd
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster482 committed Dec 12, 2023
1 parent 835f6be commit 830b442
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
)

const (
CategoryGet = `SELECT user_id, parent_tag, image_id, "name", show_income, show_outcome, regular FROM category WHERE id=$1;`
CategoryGet = `SELECT user_id, parent_tag, "name", show_income, show_outcome, regular FROM category WHERE id=$1;`

CategoryCreate = `INSERT INTO category (user_id, parent_tag, image_id, "name", show_income, show_outcome, regular)
CategoryCreate = `INSERT INTO category (user_id, parent_tag, "name", show_income, show_outcome, regular)
VALUES ($1, $2, $3, $4, $5, $6, $7)
RETURNING id;`

Expand Down Expand Up @@ -61,7 +61,7 @@ func (r *Repository) CreateTag(ctx context.Context, tag models.Category) (uuid.U
row := r.db.QueryRow(ctx, CategoryCreate,
tag.UserID,
parentID,
tag.Image,
// tag.Image,
tag.Name,
tag.ShowIncome,
tag.ShowOutcome,
Expand Down Expand Up @@ -161,7 +161,7 @@ func (r *Repository) GetTags(ctx context.Context, userID uuid.UUID) ([]models.Ca
&tag.ID,
&tag.UserID,
&tag.ParentID,
&tag.Image,
// &tag.Image,
&tag.Name,
&tag.ShowIncome,
&tag.ShowOutcome,
Expand Down

0 comments on commit 830b442

Please sign in to comment.