feat: delete news, tag, and category
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
func (a *accessor) GetAllModel() ([]categorydomain.Category, error) {
|
||||
var categories []categorydomain.Category
|
||||
|
||||
if err := a.DB.Find(&categories).Error; err != nil {
|
||||
if err := a.db.Find(&categories).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user