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

hicommonwealth / commonwealth / 13908175917

17 Mar 2025 07:26PM UTC coverage: 43.591% (-0.03%) from 43.619%
13908175917

Pull #11259

github

web-flow
Merge ee398d69e into e6f8a7f06
Pull Request #11259: Added in async count cache

1375 of 3514 branches covered (39.13%)

Branch coverage included in aggregate %.

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

77 existing lines in 12 files now uncovered.

2594 of 5591 relevant lines covered (46.4%)

36.9 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