This commit is contained in:
mr
2026-02-23 17:26:37 +01:00
parent e039fa56b6
commit ff830065ec
2 changed files with 5 additions and 2 deletions

View File

@@ -199,6 +199,7 @@ const (
PB_DELETE
PB_PLANNER
PB_CLOSE_PLANNER
PB_CONSIDERS
NONE
)
@@ -218,12 +219,14 @@ func GetActionString(ss string) PubSubAction {
return PB_PLANNER
case "close_planner":
return PB_CLOSE_PLANNER
case "considers":
return PB_CONSIDERS
default:
return NONE
}
}
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner"}
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner", "considers"}
func (m PubSubAction) String() string {
return strings.ToUpper(path[m])