mirror of
https://github.com/retailcrm/mg-bot-helper.git
synced 2025-04-20 01:10:58 +00:00
Fixes go.sum, remove slash on activate/deactivate module
This commit is contained in:
parent
4c9dc6e286
commit
8b35fde2df
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
@ -194,7 +195,7 @@ func activityHandler(c *gin.Context) {
|
|||
conn.Active = activity.Active && !activity.Freeze
|
||||
|
||||
if systemUrl != "" {
|
||||
conn.APIURL = systemUrl
|
||||
conn.APIURL = strings.TrimRight(systemUrl, "/")
|
||||
}
|
||||
|
||||
if err := conn.setConnectionActivity(); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue