Conversation
| delete("https://www.joinit.org/api/v1/organizations/me/webhooks?_id=#{webhook['_id']}") | ||
| }, | ||
|
|
||
| dedup: ->(memberships) { |
There was a problem hiding this comment.
Layout/AlignHash: Align the elements of a hash literal if they span more than one line.
Style/Lambda: Use the lambda method for multiline lambdas.
| }, | ||
|
|
||
| webhook_unsubscribe: ->(webhook) { | ||
| delete("https://www.joinit.org/api/v1/organizations/me/webhooks?_id=#{webhook['_id']}") |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [95/80]
| event: "updated") | ||
| }, | ||
|
|
||
| webhook_unsubscribe: ->(webhook) { |
There was a problem hiding this comment.
Layout/AlignHash: Align the elements of a hash literal if they span more than one line.
Style/Lambda: Use the lambda method for multiline lambdas.
| resource: "memberships", | ||
| event: "updated") | ||
| }, | ||
|
|
There was a problem hiding this comment.
Layout/TrailingWhitespace: Trailing whitespace detected.
| object_id: webhook_url, | ||
| resource: "memberships", | ||
| event: "updated") | ||
| }, |
There was a problem hiding this comment.
Layout/BlockAlignment: } at 363, 6 is not aligned with ->(webhook_url, connection, input, recipe_id) { at 356, 26 or webhook_subscribe: ->(webhook_url, connection, input, recipe_id) { at 356, 7.
| } | ||
| }, | ||
|
|
||
| updated_memberships: { |
There was a problem hiding this comment.
Layout/AlignHash: Align the elements of a hash literal if they span more than one line.
| object_definitions['memberships'] | ||
| } | ||
| }, | ||
|
|
There was a problem hiding this comment.
Layout/TrailingWhitespace: Trailing whitespace detected.
| payload | ||
| }, | ||
|
|
||
| output_fields: ->(object_definitions) { |
There was a problem hiding this comment.
Layout/AlignHash: Align the elements of a hash literal if they span more than one line.
Style/Lambda: Use the lambda method for multiline lambdas.
| memberships['_id'] | ||
| }, | ||
|
|
||
| webhook_notification: ->(input, payload) { |
There was a problem hiding this comment.
Layout/AlignHash: Align the elements of a hash literal if they span more than one line.
Style/Lambda: Use the lambda method for multiline lambdas.
Lint/UnusedBlockArgument: Unused block argument - input. If it's necessary, use _ or _input as an argument name to indicate that it won't be used.
| dedup: ->(memberships) { | ||
| memberships['_id'] | ||
| }, | ||
|
|
There was a problem hiding this comment.
Layout/TrailingWhitespace: Trailing whitespace detected.
No description provided.