Skip to content

Commit

Permalink
refactor: remove getDefaultSubscriptionPref dep from Subscriptions mo…
Browse files Browse the repository at this point in the history
…del (#34490)
  • Loading branch information
sampaiodiego authored Dec 24, 2024
1 parent e5600bb commit d1d096e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions apps/meteor/app/lib/server/functions/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async function createUsersSubscriptions({
extraData: {
...extra,
...autoTranslateConfig,
...getDefaultSubscriptionPref(member),
},
});
}
Expand Down
3 changes: 0 additions & 3 deletions apps/meteor/server/models/raw/Subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import type {
} from 'mongodb';

import { BaseRaw } from './BaseRaw';
import { getDefaultSubscriptionPref } from '../../../app/utils/lib/getDefaultSubscriptionPref';

export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscriptionsModel {
constructor(db: Db, trash?: Collection<RocketChatRecordDeleted<ISubscription>>) {
Expand Down Expand Up @@ -1856,7 +1855,6 @@ export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscri
name: user.name,
},
...(room.prid && { prid: room.prid }),
...getDefaultSubscriptionPref(user),
...extraData,
};

Expand Down Expand Up @@ -1894,7 +1892,6 @@ export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscri
name: user.name,
},
...(room.prid && { prid: room.prid }),
...getDefaultSubscriptionPref(user),
...extraData,
}));

Expand Down

0 comments on commit d1d096e

Please sign in to comment.