Removed the max/min family of functions (#28679)
They are in-built in Go now ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4440ace6a9
Коммит
3db139f746
@@ -818,7 +818,7 @@ func (s SqlSharedChannelStore) UpdateUserLastSyncAt(userID string, channelID str
|
||||
return err
|
||||
}
|
||||
|
||||
updateAt := maxInt64(user.UpdateAt, user.LastPictureUpdate)
|
||||
updateAt := max(user.UpdateAt, user.LastPictureUpdate)
|
||||
|
||||
query := s.getQueryBuilder().
|
||||
Update("SharedChannelUsers AS scu").
|
||||
|
||||
@@ -192,13 +192,6 @@ func trimInput(input string) string {
|
||||
return input
|
||||
}
|
||||
|
||||
func maxInt64(a, b int64) int64 {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// Adds backtiks to the column name for MySQL, this is required if
|
||||
// the column name is a reserved keyword.
|
||||
//
|
||||
|
||||
Ссылка в новой задаче
Block a user