Skip to content

Commit d1d096e

Browse files
authored
refactor: remove getDefaultSubscriptionPref dep from Subscriptions model (#34490)
1 parent e5600bb commit d1d096e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

apps/meteor/app/lib/server/functions/createRoom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ async function createUsersSubscriptions({
9292
extraData: {
9393
...extra,
9494
...autoTranslateConfig,
95+
...getDefaultSubscriptionPref(member),
9596
},
9697
});
9798
}

apps/meteor/server/models/raw/Subscriptions.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import type {
3434
} from 'mongodb';
3535

3636
import { BaseRaw } from './BaseRaw';
37-
import { getDefaultSubscriptionPref } from '../../../app/utils/lib/getDefaultSubscriptionPref';
3837

3938
export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscriptionsModel {
4039
constructor(db: Db, trash?: Collection<RocketChatRecordDeleted<ISubscription>>) {
@@ -1856,7 +1855,6 @@ export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscri
18561855
name: user.name,
18571856
},
18581857
...(room.prid && { prid: room.prid }),
1859-
...getDefaultSubscriptionPref(user),
18601858
...extraData,
18611859
};
18621860

@@ -1894,7 +1892,6 @@ export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscri
18941892
name: user.name,
18951893
},
18961894
...(room.prid && { prid: room.prid }),
1897-
...getDefaultSubscriptionPref(user),
18981895
...extraData,
18991896
}));
19001897

0 commit comments

Comments
 (0)