diff --git a/server/chat/index.js b/server/chat/index.js index 22251ec..de9c6e9 100644 --- a/server/chat/index.js +++ b/server/chat/index.js @@ -66,7 +66,8 @@ const chat = io => { }, order: [ ['id', 'ASC'] - ] + ], + limit: 50 }) .then(rows => rows.map(row => row.dataValues)) .then(rows => rows.filter(row => {