fix concerts deleting when nothing is scraped
This commit is contained in:
@@ -27,7 +27,7 @@ func NewConcertRepository(db *gorm.DB) *ConcertRepository {
|
||||
func (as ConcertRepository) GetAll(ctx context.Context) *[]model.ConcertModel {
|
||||
db := as.db.WithContext(ctx)
|
||||
ConcertModel := new([]model.ConcertModel)
|
||||
db.Find(&ConcertModel)
|
||||
db.Unscoped().Find(&ConcertModel)
|
||||
return ConcertModel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user