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

hicommonwealth / commonwealth / 16656414956

31 Jul 2025 06:00PM UTC coverage: 38.352% (-0.8%) from 39.148%
16656414956

Pull #12697

github

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

1861 of 5228 branches covered (35.6%)

Branch coverage included in aggregate %.

3 of 23 new or added lines in 9 files covered. (13.04%)

107 existing lines in 6 files now uncovered.

3297 of 8221 relevant lines covered (40.1%)

35.07 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