mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Save newsletter_email_id in subscription instead of the whole entity
This commit is contained in:
parent
145a8b9730
commit
c647aabeaa
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export const saveSubscription = async ({
|
|||
const result = await getRepository(Subscription).upsert(
|
||||
{
|
||||
name,
|
||||
newsletterEmail,
|
||||
newsletterEmail: { id: newsletterEmail.id },
|
||||
user: { id: userId },
|
||||
status: SubscriptionStatus.Active,
|
||||
unsubscribeHttpUrl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue