Changed preference saving to use the master database

Этот коммит содержится в:
hmhealey
2015-10-15 15:39:50 -04:00
родитель c890e21cef
Коммит 218af22936

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

@@ -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 {