Skip to content

Commit 2372986

Browse files
committed
[LIB-837] small changes after CORE change;
1 parent 14f6ff7 commit 2372986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syncano/models/custom_sockets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SocketEndpoint(Model):
109109
:ivar links: :class:`~syncano.models.fields.LinksField`
110110
"""
111111
name = fields.StringField(max_length=64, primary_key=True)
112-
calls = fields.JSONField()
112+
allowed_methods = fields.JSONField()
113113
links = fields.LinksField()
114114

115115
class Meta:
@@ -126,7 +126,7 @@ class Meta:
126126
}
127127

128128
def run(self, method='GET', data=None):
129-
endpoint_path = self.links.endpoint
129+
endpoint_path = self.links.self
130130
connection = self._get_connection()
131131
if not self._validate_method(method):
132132
raise SyncanoValueError('Method: {} not specified in calls for this custom socket.'.format(method))

0 commit comments

Comments
 (0)