Skip to content

Commit

Permalink
feat: batch add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Dec 26, 2023
1 parent 065761c commit cb378b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controller/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ func (t *TenantStruct) AddDependencys(w http.ResponseWriter, r *http.Request) {
return
}
beDepServiceIds := data["be_dep_service_ids"].(string)
for _, beDepServiceID := range strings.Split(",", beDepServiceIds) {
for _, beDepServiceID := range strings.Split(beDepServiceIds, ",") {
ds := &api_model.DependService{
TenantID: r.Context().Value(ctxutil.ContextKey("tenant_id")).(string),
ServiceID: beDepServiceID,
Expand Down

0 comments on commit cb378b4

Please sign in to comment.