[MM-45868] Add teamId to Threads table (#20915)
* Add teamId to Threads table * Get rid of multiple teamId reads * Fix failed test * Add teamId to standard queries * Fix linter * Get teamId from db
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6ac0faf99e
Коммит
fab9d350c7
@@ -26,6 +26,9 @@ type Thread struct {
|
||||
// DeleteAt is a denormalized copy of the root posts's DeleteAt. In the database, it's
|
||||
// named ThreadDeleteAt to avoid introducing a query conflict with older server versions.
|
||||
DeleteAt int64 `json:"delete_at"`
|
||||
|
||||
// TeamId is a denormalized copy of the Channel's teamId.
|
||||
TeamId string `json:"team_id"`
|
||||
}
|
||||
|
||||
type ThreadResponse struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user