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

hicommonwealth / commonwealth / 16654489606

31 Jul 2025 04:23PM UTC coverage: 38.356% (-0.8%) from 39.148%
16654489606

Pull #12697

github

web-flow
Merge bcbe9f130 into febfac2fb
Pull Request #12697: Topic Subscriptions

1861 of 5228 branches covered (35.6%)

Branch coverage included in aggregate %.

2 of 13 new or added lines in 7 files covered. (15.38%)

107 existing lines in 6 files now uncovered.

3296 of 8217 relevant lines covered (40.11%)

35.08 hits per line

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

0.0
/libs/model/src/aggregates/subscription/DeleteTopicSubscription.command.ts
1
import { type Command } from '@hicommonwealth/core';
2
import * as schemas from '@hicommonwealth/schemas';
3
import { models } from '../../database';
4

5
export function DeleteTopicSubscription(): Command<
6
  typeof schemas.DeleteTopicSubscription
7
> {
NEW
8
  return {
×
9
    ...schemas.DeleteTopicSubscription,
10
    auth: [],
11
    secure: true,
12
    body: async ({ payload, actor }) => {
NEW
13
      return await models.TopicSubscription.destroy({
×
14
        where: {
15
          user_id: actor.user.id,
16
          topic_id: payload.topic_ids,
17
        },
18
      });
19
    },
20
  };
21
}
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