File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff line change 1+ import { ConfigurationError } from "@pipedream/platform/dist" ;
12import refiner from "../../refiner.app.mjs" ;
23
34export 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 ( {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments