|
@ -98,7 +98,6 @@ class Doctor extends BaseModel {
|
|
|
* @param channel
|
|
|
*/
|
|
|
static pushMessage(message, channel){
|
|
|
console.log(JSON.stringify(message));
|
|
|
if(message.contentType ==CONTENT_TYPES.SessionEnd){
|
|
|
return;
|
|
|
}
|
|
@ -582,7 +581,7 @@ class Doctor extends BaseModel {
|
|
|
getPrivateMessages(userId, peerId, contentType, msgStartId, msgEndId, count, closedInterval) {
|
|
|
let self = this;
|
|
|
|
|
|
pmRepo.findAllMessages(userId, peerId, contentType === undefined ? "0,1,2,3,4,5,6,8,9" : contentType, msgStartId, msgEndId, count, closedInterval, function (err, rows) {
|
|
|
pmRepo.findAllMessages(userId, peerId, contentType === undefined ? "0,1,2,3,4,5,6,7,8,9" : contentType, msgStartId, msgEndId, count, closedInterval, function (err, rows) {
|
|
|
if (err) {
|
|
|
modelUtil.emitDbError(self.eventEmitter, 'Get private message failed', err);
|
|
|
return;
|