Merge branch 'dev' into feature/mir

pull/196/head
Michael Li 2 years ago
commit c19d7107f2
No known key found for this signature in database

@ -7,6 +7,7 @@ on:
- dev
- 'jc/**'
- 'feature/**'
- 'x/**'
paths:
- '**.go'
- 'go.mod'

@ -48,7 +48,7 @@ func (t *Tag) Get(db *gorm.DB) (*Tag, error) {
err := db.First(&tag).Error
if err != nil {
return &tag, err
return nil, err
}
return &tag, nil
@ -88,7 +88,7 @@ func (t *Tag) List(db *gorm.DB, conditions *ConditionsT, offset, limit int) ([]*
}
}
if err = db.Where("is_del = ?", 0).Find(&tags).Error; err != nil {
if err = db.Where("is_del = 0 and quote_num > 0").Find(&tags).Error; err != nil {
return nil, err
}

Loading…
Cancel
Save