File tree Expand file tree Collapse file tree
scripts/delete-inactive-accounts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const requestForGlean = {
6363} as unknown as AuthRequest ;
6464
6565export const isCloudTaskAlreadyExistsError = ( error ) =>
66- error . code === 10 && error . message . includes ( 'entity already exists' ) ;
66+ error . message . includes ( 'entity already exists' ) ;
6767
6868export type InactiveStatusOAuthDb = Pick <
6969 typeof OAuthDb ,
Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ const init = async () => {
543543 // Note that the fxa cloud tasks lib already emitted some statsd metrics
544544 statsd . increment (
545545 'cloud-tasks.inactive-account-email.enqueue.error-code' ,
546- [ cloudTaskQueueError . code as unknown as string ]
546+ { errorCode : cloudTaskQueueError . code as unknown as string }
547547 ) ;
548548 await glean . inactiveAccountDeletion . firstEmailTaskRejected (
549549 requestForGlean ,
You can’t perform that action at this time.
0 commit comments