Skip to content

Commit 1c8165a

Browse files
changes based on adding additional fields in entries
1 parent 24f7ac6 commit 1c8165a

File tree

6 files changed

+3283
-388
lines changed

6 files changed

+3283
-388
lines changed

.env

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#
22
# PostgreSQL DATABASE
33
#
4-
DB_HOST='' #your database host
5-
DB_PORT= #your database port
6-
DB_USERNAME='' #your database username
7-
DB_PASSWORD='' #your databse password
8-
DB_NAME='' #your database names
9-
4+
DB_HOST='' #your database host
5+
DB_PORT='' #your database port
6+
DB_USERNAME='' #your database username
7+
DB_PASSWORD='' #your databse password
8+
DB_NAME='' #your database names
109

1110
#
1211
#Keys

controller/category.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package controller
33
import (
44
"context"
55
"gqlserver/graph/model"
6+
"log"
67
"strconv"
78

89
// "log"
@@ -56,6 +57,8 @@ func CategoriesList(db *gorm.DB,ctx context.Context,limit, offset int)(model.Cat
5657
return model.CategoriesList{},err
5758
}
5859

60+
log.Println("chkkk",categories)
61+
5962
var final_categoriesList []model.TblCategory
6063

6164
for _,parentCat := range categories{

0 commit comments

Comments
 (0)