feat: delete news, tag, and category
This commit is contained in:
@@ -14,7 +14,7 @@ func (a *accessor) CreateModel(spec categorydomain.CategoryReq) error {
|
||||
Code: spec.Code,
|
||||
}
|
||||
|
||||
if err := a.DB.Create(&data).Error; err != nil {
|
||||
if err := a.db.Create(&data).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user