Implement GET and POST /hooks/outgoing endpoints for APIv4 (#5645)

Этот коммит содержится в:
Joram Wilander
2017-03-13 10:40:43 -04:00
коммит произвёл GitHub
родитель 3ebfb36953
Коммит 19c67d7fe3
9 изменённых файлов: 409 добавлений и 19 удалений

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

@@ -313,7 +313,7 @@ func UpdateChannelMemberNotifyProps(data map[string]string, channelId string, us
func DeleteChannel(channel *model.Channel, userId string) *model.AppError {
uc := Srv.Store.User().Get(userId)
ihc := Srv.Store.Webhook().GetIncomingByChannel(channel.Id)
ohc := Srv.Store.Webhook().GetOutgoingByChannel(channel.Id)
ohc := Srv.Store.Webhook().GetOutgoingByChannel(channel.Id, -1, -1)
if uresult := <-uc; uresult.Err != nil {
return uresult.Err