diff options
author | Corey Hulen <corey@hulen.com> | 2016-05-17 12:52:10 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-17 15:52:10 -0400 |
commit | 123bfad69c405b0e78e3031d8064fd7621416867 (patch) | |
tree | ca24158452a5d151842994d57f9ceb5cc97e19c4 /store/sql_preference_store.go | |
parent | d2b556aa77cc8e8f7d7aef340950fb632fba2aa6 (diff) | |
download | chat-123bfad69c405b0e78e3031d8064fd7621416867.tar.gz chat-123bfad69c405b0e78e3031d8064fd7621416867.tar.bz2 chat-123bfad69c405b0e78e3031d8064fd7621416867.zip |
Fixing LDAP issue with Postgres (#3033)
Diffstat (limited to 'store/sql_preference_store.go')
-rw-r--r-- | store/sql_preference_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_preference_store.go b/store/sql_preference_store.go index bb3fca3e3..83bf92ead 100644 --- a/store/sql_preference_store.go +++ b/store/sql_preference_store.go @@ -155,7 +155,7 @@ func (s SqlPreferenceStore) insert(transaction *gorp.Transaction, preference *mo result := StoreResult{} if err := transaction.Insert(preference); err != nil { - if IsUniqueConstraintError(err.Error(), "UserId", "preferences_pkey") { + if IsUniqueConstraintError(err.Error(), []string{"UserId", "preferences_pkey"}) { result.Err = model.NewLocAppError("SqlPreferenceStore.insert", "store.sql_preference.insert.exists.app_error", nil, "user_id="+preference.UserId+", category="+preference.Category+", name="+preference.Name+", "+err.Error()) } else { |