✨ feat(聊天): 战区频道
This commit is contained in:
@@ -55,8 +55,8 @@ export default class GroupMessage extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async getMsgs(roomId: string, fromSeqId: number, count: number) {
|
||||
const result = await GroupMessageModel.find({ roomId, seqId: { $lt: fromSeqId } }).sort({ seqId: -1 }).limit(count).lean();
|
||||
public static async getMsgs(roomIds: string[], fromSeqId: number, count: number) {
|
||||
const result = await GroupMessageModel.find({ roomId: { $in: roomIds }, seqId: { $lt: fromSeqId } }).sort({ seqId: -1 }).limit(count).lean();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user