Skip to content

Commit

Permalink
fix(fetch): fix typo in delete OffensiveSecurity (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Jun 24, 2021
1 parent ace20b8 commit dfd947e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (r *RDBDriver) deleteAndInsertExploit(conn *gorm.DB, exploitType models.Exp

if result.RowsAffected > 0 {
for _, oldID := range oldIDs {
osIDs := []models.GitHubRepository{}
osIDs := []models.OffensiveSecurity{}
if err := tx.Table("offensive_securities").Select("id").Where("exploit_id = ?", oldID.ID).Find(&osIDs).Error; err != nil {
return xerrors.Errorf("Failed to select old OffensiveSecurity: %w", err)
}
Expand Down

0 comments on commit dfd947e

Please sign in to comment.