From 3e2afe61b366029953714e7d9d57580476e9aa93 Mon Sep 17 00:00:00 2001 From: stud162129 Date: Thu, 4 Jul 2024 22:23:07 +0300 Subject: [PATCH] fix --- .idea/vcs.xml | 6 ++++++ main/repository/programs.go | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/main/repository/programs.go b/main/repository/programs.go index cb45a52..05d8cc3 100644 --- a/main/repository/programs.go +++ b/main/repository/programs.go @@ -85,6 +85,7 @@ func (repo *PGrepo) GetLicenseWithId(id int) (models.License, error) { } defer rows.Close() var license models.License + rows.Next() err = rows.Scan(&license.ID, &license.Name) if err != nil { fmt.Println(err) @@ -98,6 +99,7 @@ func (repo *PGrepo) GetCategoryWithId(id int) (models.Category, error) { } defer rows.Close() var category models.Category + rows.Next() err = rows.Scan(&category.ID, &category.Name) if err != nil { fmt.Println(err)