apps/meteor/server/publications/messages.ts
Function messages/get
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async 'messages/get'(rid, { lastUpdate, latestDate = new Date(), oldestDate, inclusive = false, count = 20, unreads = false }) {
check(rid, String);
const fromId = Meteor.userId();