aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/customer
diff options
context:
space:
mode:
Diffstat (limited to 'customer')
-rw-r--r--customer/validators.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/customer/validators.go b/customer/validators.go
index ea2a9d5..a495772 100644
--- a/customer/validators.go
+++ b/customer/validators.go
@@ -61,7 +61,7 @@ func checkDuplicateExisting(field, value string, userId, customerId uint) error
if value != "" {
var count int64
err := db.Model(&Customer{}).
- Where("user_id = ? and id != ? and" + field + " = ?", userId, customerId, value).
+ Where("user_id = ? and id != ? and " + field + " = ?", userId, customerId, value).
Count(&count).
Error