Merge pull request #1080 from hmhealey/plt686

PLT-686 Changed preference saving to use the master database
Этот коммит содержится в:
Joram Wilander
2015-10-16 07:55:15 -04:00
родитель 50a8e2bd4f 218af22936
Коммит 92e986945c

Просмотреть файл

@@ -43,7 +43,7 @@ func (s SqlPreferenceStore) Save(preferences *model.Preferences) StoreChannel {
result := StoreResult{}
// wrap in a transaction so that if one fails, everything fails
transaction, err := s.GetReplica().Begin()
transaction, err := s.GetMaster().Begin()
if err != nil {
result.Err = model.NewAppError("SqlPreferenceStore.Save", "Unable to open transaction to save preferences", err.Error())
} else {