Revert "app/pluginservice: move plugin out from the Channels product (#21697)" (#21725)

This reverts commit 6c55c4d356.
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-11-24 16:52:36 +03:00
коммит произвёл GitHub
родитель a05dd722ed
Коммит 372653a921
31 изменённых файлов: 408 добавлений и 497 удалений

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

@@ -886,7 +886,7 @@ func (api *PluginAPI) DisablePlugin(id string) *model.AppError {
}
func (api *PluginAPI) RemovePlugin(id string) *model.AppError {
return api.app.Srv().pluginService.RemovePlugin(id)
return api.app.Channels().RemovePlugin(id)
}
func (api *PluginAPI) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError) {
@@ -1235,7 +1235,7 @@ func (api *PluginAPI) GetCloudLimits() (*model.ProductLimits, error) {
// RegisterCollectionAndTopic informs the server that this plugin handles
// the given collection and topic types.
func (api *PluginAPI) RegisterCollectionAndTopic(collectionType, topicType string) error {
return api.app.Srv().pluginService.registerCollectionAndTopic(api.id, collectionType, topicType)
return api.app.registerCollectionAndTopic(api.id, collectionType, topicType)
}
func (api *PluginAPI) CreateUploadSession(us *model.UploadSession) (*model.UploadSession, error) {