* Changed the request type to POST for the remove recent custom status API

Fixed the custom status clear slash command

* Added Delete method in the remove recent custom status endpoint

* Added one new endpoint to remove recent custom status with POST method

* Added comments for the recent custom status API

Co-authored-by: Manoj <manoj@brightscout.com>
Co-authored-by: Chetanya Kandhari <availchet@gmail.com>
Co-authored-by: Manoj <77336594+manojosh@users.noreply.github.com>
Этот коммит содержится в:
Chetanya Kandhari
2021-04-21 14:07:17 +05:30
коммит произвёл GitHub
родитель bf542ec12f
Коммит 9eceeaa8db
2 изменённых файлов: 5 добавлений и 0 удалений

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

@@ -45,6 +45,7 @@ func (*CustomStatusProvider) DoCommand(a *app.App, args *model.CommandArgs, mess
return nil
}
message = strings.TrimSpace(message)
if message == CmdCustomStatusClear {
if err := a.RemoveCustomStatus(args.UserId); err != nil {
mlog.Error(err.Error())