File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ interface TransactionalEmail {
179
179
* The date the email was last updated in ECMA-262 date-time format.
180
180
* @see https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-date-time-string-format
181
181
*/
182
- lastUpdate : string ;
182
+ lastUpdated : string ;
183
183
/**
184
184
* Data variables in the transactional email.
185
185
*/
@@ -546,7 +546,9 @@ class LoopsClient {
546
546
mailingLists ?: MailingLists ;
547
547
} ) : Promise < EventSuccessResponse > {
548
548
if ( ! userId && ! email )
549
- throw "You must provide an `email` or `userId` value." ;
549
+ throw new ValidationError (
550
+ "You must provide an `email` or `userId` value."
551
+ ) ;
550
552
const payload : {
551
553
email ?: string ;
552
554
userId ?: string ;
You can’t perform that action at this time.
0 commit comments