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

hicommonwealth / commonwealth / 13906683053

17 Mar 2025 06:07PM UTC coverage: 43.626% (+0.007%) from 43.619%
13906683053

Pull #11259

github

web-flow
Merge 03b71931d into 4603c709d
Pull Request #11259: Added in async count cache

1372 of 3506 branches covered (39.13%)

Branch coverage included in aggregate %.

5 of 14 new or added lines in 5 files covered. (35.71%)

75 existing lines in 11 files now uncovered.

2591 of 5578 relevant lines covered (46.45%)

36.97 hits per line

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

0.0
/libs/model/src/aggregates/subscription/RegisterClientRegistrationToken.command.ts
1
import { notificationsProvider, type Command } from '@hicommonwealth/core';
2
import * as schemas from '@hicommonwealth/schemas';
3
import { authVerified } from '../../middleware/auth';
4

5
export function RegisterClientRegistrationToken(): Command<
6
  typeof schemas.RegisterClientRegistrationToken
7
> {
8
  const notifications = notificationsProvider();
×
UNCOV
9
  return {
×
10
    ...schemas.RegisterClientRegistrationToken,
11
    auth: [authVerified()],
12
    secure: true,
13
    body: async ({ payload, actor }) => {
14
      if (!actor.user.id) {
×
UNCOV
15
        throw new Error('No user id.');
×
16
      }
17

UNCOV
18
      await notifications.registerClientRegistrationToken(
×
19
        actor.user.id,
20
        payload.token,
21
        payload.channelType,
22
      );
UNCOV
23
      return {};
×
24
    },
25
  };
26
}
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