Skip to content

Commit

Permalink
chaynHQ#532 Added await in crisp service so error is caught in async …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
leoseg committed Dec 29, 2024
1 parent 48a8d63 commit e380a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crisp/crisp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class CrispService {

async deleteCrispProfile(email: string) {
try {
CrispClient.website.removePeopleProfile(crispWebsiteId, email);
await CrispClient.website.removePeopleProfile(crispWebsiteId, email);
} catch (error) {
throw new Error(`Delete crisp profile API call failed: ${error}`);
}
Expand Down

0 comments on commit e380a9f

Please sign in to comment.