cinsiyet eklenior

This commit is contained in:
merdan 2022-09-27 18:56:57 +05:00
parent 36a65611e3
commit fedb90754c
1 changed files with 1 additions and 2 deletions

View File

@ -220,6 +220,7 @@ func getCats(db *gorm.DB, catIDs []int) ([]gm.Category, string, error) {
}
for _, cat := range categories {
log.Println(cat)
if len(cat.Translations) > 0 && cat.Translations[0].MetaKeywords != "" {
translation := cat.Translations[0]
@ -227,8 +228,6 @@ func getCats(db *gorm.DB, catIDs []int) ([]gm.Category, string, error) {
}
}
log.Println(keywords)
return categories, keywords, nil
}