Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Nov 27, 2023
1 parent 4c877e4 commit d3b72f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion core/api/src/services/ledger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ export const LedgerService = (): ILedgerService => {
}

for await (const { _id } of transactions) {
yield toWalletId(_id)
const result = toWalletId(_id)
if (result) {
yield result
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/api/src/services/twilio-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ export const TwilioClient = (): IPhoneProviderService => {
}): Promise<true | PhoneProviderServiceError> => {
try {
if (isDisposablePhoneNumber(to)) {
return new InvalidTypePhoneProviderError()
return new InvalidTypePhoneProviderError("disposable")
}

const lookup = await client.lookups.v2.phoneNumbers(to).fetch({
fields: "line_type_intelligence",
})
// https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence#type-property-values
if (lookup.lineTypeIntelligence.type === "nonFixedVoip") {
return new InvalidTypePhoneProviderError()
return new InvalidTypePhoneProviderError("nonFixedVoip")
}

await verify.verifications.create({ to, channel })
Expand Down

0 comments on commit d3b72f2

Please sign in to comment.