Skip to content

Commit

Permalink
Merge pull request #4420 from novuhq/allow-fetching-of-no-level-prefe…
Browse files Browse the repository at this point in the history
…rences

Allow fetching of no level preferences
  • Loading branch information
scopsy authored Oct 5, 2023
2 parents 0d6ce65 + 55ebe89 commit 98bb4c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export class UpdateSubscriberPreference {
_organizationId: command.organizationId,
_subscriberId: subscriber._id,
_templateId: command.templateId,
level: PreferenceLevelEnum.TEMPLATE,
},
{
$set: updatePayload,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
SubscriberRepository,
SubscriberEntity,
MessageTemplateRepository,
PreferenceLevelEnum,
} from '@novu/dal';
import {
ChannelTypeEnum,
Expand Down Expand Up @@ -54,7 +53,6 @@ export class GetSubscriberTemplatePreference {
_environmentId: command.environmentId,
_subscriberId: subscriber._id,
_templateId: command.template._id,
level: PreferenceLevelEnum.TEMPLATE,
});

const subscriberChannelPreference = subscriberPreference?.channels;
Expand Down

0 comments on commit 98bb4c8

Please sign in to comment.