Skip to content

Commit e3c0d43

Browse files
committed
fixing bug1
1 parent 458e6c1 commit e3c0d43

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

adapters/api/segment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export async function sendSegmentEvent(action, body) {
2424
`${ATLAN_INSTANCE_URL}/api/service/segment/track`,
2525
requestOptions
2626
)
27-
.then(() => {
27+
.then((resp) => {
28+
console.log("Inside then", resp);
2829
console.log("send segment event", action, body);
2930
})
3031
.catch((err) => {
31-
console.log("OHHH NO", response);
32+
console.log("Catch err", err);
3233
console.log("couldn't send segment event", err);
3334
});
34-
console.log("inside ", response);
3535
} else {
3636
console.log("Wuttt");
3737
console.log("send segment event", action, body);

dist/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25392,14 +25392,14 @@ async function sendSegmentEvent(action, body) {
2539225392
`${ATLAN_INSTANCE_URL}/api/service/segment/track`,
2539325393
requestOptions
2539425394
)
25395-
.then(() => {
25395+
.then((resp) => {
25396+
console.log("Inside then", resp);
2539625397
console.log("send segment event", action, body);
2539725398
})
2539825399
.catch((err) => {
25399-
console.log("OHHH NO", response);
25400+
console.log("Catch err", err);
2540025401
console.log("couldn't send segment event", err);
2540125402
});
25402-
console.log("inside ", response);
2540325403
} else {
2540425404
console.log("Wuttt");
2540525405
console.log("send segment event", action, body);

0 commit comments

Comments
 (0)