Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions grpc_api/cc_agent.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package grpc_api

import (
"cmp"
"context"
"fmt"
"strconv"
"strings"

"github.com/golang/protobuf/ptypes/wrappers"

Check failure on line 10 in grpc_api/cc_agent.go

View workflow job for this annotation

GitHub Actions / Checks / Lint code

import 'github.com/golang/protobuf/ptypes/wrappers' is not allowed from list 'main': use google.golang.org/protobuf instead (depguard)

"github.com/webitel/engine/gen/engine"
"github.com/webitel/engine/model"
Expand Down Expand Up @@ -419,6 +420,7 @@
AgentID: agentId,
OnDemand: in.GetOnDemand(),
OnlineStatus: onlineStatus,
DomainID: cmp.Or(in.GetDomainId(), session.Domain(0)),
})
case model.AgentStatusPause:
err = api.ctrl.PauseAgent(ctx, session, session.Domain(in.GetDomainId()), in.GetId(), in.GetPayload(), in.GetStatusComment(), 0)
Expand Down
Loading