Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/l3mbda/l3mbda.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
},
methods: {
_baseUrl() {
return "https://l3mbda.com/integrations/pipedream";
return "https://l3mbda.com/api/oracles";
},
_headers() {
return {
Expand Down
15 changes: 5 additions & 10 deletions components/l3mbda/sources/common/webhook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ export default {
},
createEndpoint(args = {}) {
return this.app.post({
path: "/endpoint",
path: "/simple",
...args,
});
},
deleteEndpoint(args = {}) {
deleteEndpoint(endpointId) {
return this.app.delete({
path: "/endpoint",
...args,
path: `/${endpointId}`
});
},
getEvent() {
Expand Down Expand Up @@ -89,7 +88,7 @@ export default {
},
});

setEndpointId(response.endpointId);
setEndpointId(response.id);
},
async deactivate() {
const {
Expand All @@ -99,11 +98,7 @@ export default {

const endpointId = getEndpointId();
if (endpointId) {
await deleteEndpoint({
data: {
endpointId,
},
});
await deleteEndpoint(endpointId);
}
},
},
Expand Down