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)