[MM-28985] Remove pointers to slice (part 1) (#18034)
* Remove pointers to slice (part 1) * Remove use of pointers to slice from model package (#18045) * Fix after merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
132f114793
Коммит
04b27ce93c
@@ -194,7 +194,7 @@ func createPostWithUserId(ss store.Store, id string) *model.Post {
|
||||
return createPost(ss, model.NewId(), id, "", "")
|
||||
}
|
||||
|
||||
func createPreferences(ss store.Store, userId string) *model.Preferences {
|
||||
func createPreferences(ss store.Store, userId string) model.Preferences {
|
||||
preferences := model.Preferences{
|
||||
{
|
||||
UserId: userId,
|
||||
@@ -203,8 +203,8 @@ func createPreferences(ss store.Store, userId string) *model.Preferences {
|
||||
Value: "somevalue",
|
||||
},
|
||||
}
|
||||
ss.Preference().Save(&preferences)
|
||||
return &preferences
|
||||
ss.Preference().Save(preferences)
|
||||
return preferences
|
||||
}
|
||||
|
||||
func createReaction(ss store.Store, userId, postId string) *model.Reaction {
|
||||
|
||||
Ссылка в новой задаче
Block a user