浏览代码

Merge branch 'feature-1.2.6' of linzhuo/im.doctor into dev

linzhuo 8 年之前
父节点
当前提交
dc20d52493
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/doctor/repository/group.msg.repo.js

+ 1 - 1
src/doctor/repository/group.msg.repo.js

@ -13,7 +13,7 @@ exports.save = function (from, groupId, at, contentType, content, handler) {
exports.findAllMessages = function (groupId, contentType, start, end, count, handler) {
    var sql = "SELECT to_gid, msg_id, from_uid, at_uid, type, content, timestamp " +
        "FROM msg_group " +
        "WHERE to_gid = ? AND type in(" + contentType + ") AND msg_id BETWEEN ? AND ? GROUP BY timestamp DESC LIMIT ?";
        "WHERE to_gid = ? AND type in(" + contentType + ") AND msg_id BETWEEN ? AND ? ORDER BY timestamp DESC LIMIT ?";
    imRepo.execQuery({
        "sql": sql,