소스 검색

Change name to slug

sbkwgh 8 년 전
부모
커밋
74aec723c3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      models/thread.js

+ 1 - 0
models/thread.js

@@ -39,6 +39,7 @@ module.exports = (sequelize, DataTypes) => {
 						order,
 						limit: limit,
 						include: [
+							{ model: models.Thread, attributes: ['slug'] }, 
 							{ model: models.User, attributes: ['username', 'createdAt', 'id', 'color'] }, 
 							{
 								model: models.Post, as: 'Replies', include: