• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hicommonwealth / commonwealth / 12769251877

14 Jan 2025 02:02PM UTC coverage: 48.438% (+0.01%) from 48.424%
12769251877

push

github

web-flow
Merge pull request #10195 from hicommonwealth/kaleemNeslit.10139.recap_email

improve the recape email design

1310 of 3019 branches covered (43.39%)

Branch coverage included in aggregate %.

19 of 25 new or added lines in 5 files covered. (76.0%)

2582 of 5016 relevant lines covered (51.48%)

34.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/libs/model/src/subscription/UnSubscribeEmail.command.ts
1
import { type Command } from '@hicommonwealth/core';
2
import * as schemas from '@hicommonwealth/schemas';
3
import { models } from '../database';
4
import { mustExist } from '../middleware/guards';
5
import { handleSubscriptionPreferencesUpdate } from '../utils/handleSubscriptionPreferencesUpdate';
6
export function UnsubscribeEmail(): Command<typeof schemas.UnsubscribeEmail> {
NEW
7
  return {
×
8
    ...schemas.UnsubscribeEmail,
9
    auth: [],
10
    secure: false,
11
    body: async ({ payload }) => {
NEW
12
      const user = await models.User.findOne({
×
13
        where: { unsubscribe_uuid: payload.user_uuid },
14
      });
NEW
15
      mustExist('User', user);
×
16

NEW
17
      return await handleSubscriptionPreferencesUpdate({
×
18
        userIdentifier: user.id!,
19
        payload,
20
      });
21
    },
22
  };
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc