Skip to content

Commit 8f0c540

Browse files
committed
some adjusts
1 parent f5d2b27 commit 8f0c540

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

components/refiner/actions/identify-user/identify-user.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
},
2727
async run({ $ }) {
2828
if (!this.userId && !this.email) {
29-
throw new ConfigurationError("Either User Id or E mail must be provided to identify the user.");
29+
throw new ConfigurationError("Either User ID or Email must be provided to identify the user.");
3030
}
3131

3232
const response = await this.refiner.identifyUser({

components/refiner/actions/track-event/track-event.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ConfigurationError } from "@pipedream/platform/dist";
12
import refiner from "../../refiner.app.mjs";
23

34
export default {
@@ -30,7 +31,7 @@ export default {
3031
},
3132
async run({ $ }) {
3233
if (!this.userId && !this.email) {
33-
throw new Error("Either userId or email must be provided to track the event.");
34+
throw new ConfigurationError("Either User ID or Email must be provided to track the event.");
3435
}
3536

3637
const response = await this.refiner.trackEvent({

components/refiner/sources/common/base.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export default {
3030
let responseArray = [];
3131
for await (const item of response) {
3232
const itemDate = this.getItemDate(item);
33-
34-
if (!itemDate.length) continue;
3533
if (Date.parse(itemDate) <= lastDate) break;
3634
responseArray.push(item);
3735
}

0 commit comments

Comments
 (0)