Skip to content

Commit 0e3d43a

Browse files
Removed multiple ACL changes and added success param
1 parent fefd5aa commit 0e3d43a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/types/transaction.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type ScheduleTransactionRequest struct {
1717
Operation OperationType `json:"operation"`
1818
TargetPath string `json:"targetPath"`
19-
Entries []ACLEntry `json:"entries"`
19+
Entries ACLEntry `json:"entries"`
2020
}
2121

2222
/* represents the result of the transaction */
@@ -76,11 +76,14 @@ type Transaction struct {
7676
TargetPath string `json:"targetPath"`
7777

7878
/* ACL entries involved */
79-
Entries []ACLEntry `json:"entries"`
79+
Entries ACLEntry `json:"entries"`
8080

8181
/* success/failure/pending */
8282
Status TxnStatus `json:"status"`
8383

84+
/* execution status */
85+
ExecStatus bool `json:"execStatus"`
86+
8487
/* set if failed */
8588
ErrorMsg string `json:"errorMsg,omitempty"`
8689

0 commit comments

Comments
 (0)