fix state update, save/load

This commit is contained in:
mudler
2024-04-04 16:58:25 +02:00
parent 9173156e40
commit b4fd482f66
7 changed files with 151 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ func NewContext(ctx context.Context, cancel context.CancelFunc) *ActionContext {
}
}
type ActionParams map[string]string
type ActionParams map[string]interface{}
func (ap ActionParams) Read(s string) error {
err := json.Unmarshal([]byte(s), &ap)