fix(subs): remove redundant stream sub defs

This commit is contained in:
izzy lyseggen
2020-08-20 10:00:26 +01:00
parent c6db01420a
commit 99f473873a
+5 -9
View File
@@ -88,7 +88,9 @@ extend type Subscription {
"""
Subscribes to new stream created event for a given user.
"""
userStreamCreated( ownerId: String! ): JSONObject @hasRole(role: "server:user") @hasScope(scope: "profile:read")
userStreamCreated( ownerId: String! ): JSONObject
@hasRole(role: "server:user")
@hasScope(scope: "profile:read")
# Source:
# - stream delete mutation (target: all stream users in acl)
@@ -98,21 +100,15 @@ extend type Subscription {
"""
Subscribes to stream deleted event for a given user.
"""
userStreamCreated( ownerId: String! ): JSONObject
# TODO: how should auth be enforced for this?
userStreamDeleted( ownerId: String! ): JSONObject
@hasRole(role: "server:user")
@hasScope(scope: "profile:read")
"""
Subscribes to stream updated event.
"""
streamUpdated( streamId: String! ): JSONObject
@hasRole(role: "server:user")
"""
Subscribes to stream deleted event. (do we want this for streamId?)
"""
userStreamDeleted( ownerId: String! ): JSONObject
# TODO: how should auth be enforced for this?
@hasRole(role: "server:user")
"""
Subscribes to stream permission granted event.
"""
streamPermissionGranted( userId: String! ): JSONObject