fixed most init errors in channels/store/storetest dir | 24 files edited (#26522)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com> Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5dba6e082d
Коммит
71bf7777f5
@@ -3357,7 +3357,7 @@ func (s SqlChannelStore) channelSearchQuery(opts *store.ChannelSearchOpts) sq.Se
|
||||
}
|
||||
|
||||
likeFields := "c.Name, c.DisplayName, c.Purpose"
|
||||
if opts.IncludeSearchById {
|
||||
if opts.IncludeSearchByID {
|
||||
likeFields = likeFields + ", c.Id"
|
||||
}
|
||||
|
||||
|
||||
@@ -3284,7 +3284,7 @@ func (s *SqlPostStore) GetPostReminders(now int64) (_ []*model.PostReminder, err
|
||||
|
||||
func (s *SqlPostStore) GetPostReminderMetadata(postID string) (*store.PostReminderMetadata, error) {
|
||||
meta := &store.PostReminderMetadata{}
|
||||
err := s.GetReplicaX().Get(meta, `SELECT c.id as ChannelId,
|
||||
err := s.GetReplicaX().Get(meta, `SELECT c.id as ChannelID,
|
||||
COALESCE(t.name, '') as TeamName,
|
||||
u.locale as UserLocale, u.username as Username
|
||||
FROM Posts p
|
||||
|
||||
Ссылка в новой задаче
Block a user