Skip to content

Commit

Permalink
validator unique columns
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Oct 29, 2024
1 parent f50f774 commit 087f418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func uniqueColumnsValidator(match []string, value *generic.Value, stmt *gorm.Sta
if zero {
return nil
}
model = model.Where("`"+item.DataType+"` = ?", dst)
model = model.Where("`"+item.DBName+"` = ?", dst)
}
}
}
Expand Down

0 comments on commit 087f418

Please sign in to comment.