Removed _state from json attributes

graph-rework-2
noah metz 2023-06-26 23:20:12 -06:00
parent 1ce98e2719
commit 7b6ceaaad2
2 changed files with 2 additions and 2 deletions

@ -69,7 +69,7 @@ type BaseLockableStateJSON struct {
Owner *NodeID `json:"owner"`
Dependencies []NodeID `json:"dependencies"`
Requirements []NodeID `json:"requirements"`
HolderState *BaseLockHolderState `json:"holder_state"`
HolderState *BaseLockHolderState `json:"holder"`
}
func (state * BaseLockableState) MarshalJSON() ([]byte, error) {

@ -73,7 +73,7 @@ type BaseThreadState struct {
type BaseThreadStateJSON struct {
Parent *NodeID `json:"parent"`
Children map[NodeID]interface{} `json:"children"`
LockableState *BaseLockableState `json:"lockable_state"`
LockableState *BaseLockableState `json:"lockable"`
}
func (state * BaseThreadState) MarshalJSON() ([]byte, error) {