Skip to content

Commit 2649d21

Browse files
authored
Merge pull request #7318 from onflow/peter/fix-list-subscriptions-action-name
[Access] change list_subscription to list_subscriptions - v0.40
2 parents 8a56412 + 253d00a commit 2649d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/access/rest/websockets/models/base_message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package models
33
const (
44
SubscribeAction = "subscribe"
55
UnsubscribeAction = "unsubscribe"
6-
ListSubscriptionsAction = "list_subscription"
6+
ListSubscriptionsAction = "list_subscriptions"
77
)
88

99
// BaseMessageRequest represents a base structure for incoming messages.
1010
type BaseMessageRequest struct {
1111
// SubscriptionID is UUID generated by either client or server to uniquely identify subscription.
12-
// It is empty for 'list_subscription' action
12+
// It is empty for 'list_subscriptions' action
1313
SubscriptionID string `json:"subscription_id,omitempty"`
1414
Action string `json:"action"` // Action is an action to perform (e.g. 'subscribe' to some data)
1515
}

0 commit comments

Comments
 (0)