Skip to content

Commit bb63d7c

Browse files
authored
fix: mailchimp therapy update (#484)
1 parent c86ca04 commit bb63d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webhooks/webhooks.service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ export class WebhooksService {
243243
await this.partnerAccessRepository.save(partnerAccess);
244244
const therapySession = await this.therapySessionRepository.save(serializedTherapySession);
245245

246-
updateServiceUserProfilesTherapy([...partnerAccesses, partnerAccess], user.email);
246+
partnerAccess.therapySession.push(therapySession);
247+
updateServiceUserProfilesTherapy(partnerAccesses, user.email);
247248

248249
return therapySession;
249250
} catch (err) {

0 commit comments

Comments
 (0)